/* CEO page (owner 2026-11-15): photo, intro, resume, business card. Uses the 3D layer's slabs and tilt. */
.cv { padding-top: 56px; }
.cv-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .cv-hero { grid-template-columns: 1fr; gap: 36px; } }

.cv-photo { position: relative; aspect-ratio: 4 / 5; max-width: 440px; width: 100%; justify-self: center; border-radius: 26px; overflow: visible;
  border: 1px solid transparent; background: var(--gloss) padding-box, var(--slab) padding-box, linear-gradient(160deg, #a78bfa, rgba(99, 102, 241, 0.4) 45%, rgba(34, 211, 238, 0.8)) border-box;
  box-shadow: var(--tile-shadow), 0 0 90px -30px rgba(139, 92, 246, 0.8); }
.cv-photo img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 30px -12px rgba(0, 0, 0, 0.8); transform: translateZ(30px); }
.cv-initial { display: none; }
.cv-photo.nophoto .cv-initial { display: grid; place-items: center; position: absolute; inset: 10px; border-radius: 18px; font-size: 150px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.5), transparent 60%), linear-gradient(160deg, #2a1d5e, #0f0f19);
  text-shadow: 0 2px 0 #a78bfa, 0 4px 0 #6d4ed8, 0 6px 0 #3d2794, 0 24px 40px rgba(0, 0, 0, 0.6); transform: translateZ(30px); }
.cv-badge { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%) translateZ(50px); white-space: nowrap; font-weight: 800; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; color: #fff; background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #3b1d8f, 0 14px 28px -8px rgba(139, 92, 246, 0.9); }
.cv-photo::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: -46px; height: 50px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.45), transparent); filter: blur(8px); }

.cv-intro h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; margin: 16px 0 18px;
  text-shadow: 0 1px 0 #d8d4f0, 0 2px 0 #b3add6, 0 3px 0 #8d86b8, 0 4px 0 #6a6496, 0 5px 0 #4a4570, 0 18px 34px rgba(0, 0, 0, 0.65); }
.cv-intro h1 .grad { text-shadow: none; filter: drop-shadow(0 1px 0 #6d4ed8) drop-shadow(0 2px 0 #5236b8) drop-shadow(0 3px 0 #3d2794) drop-shadow(0 16px 26px rgba(99, 102, 241, 0.45)); }
.cv-intro .lead { font-size: 18px; color: var(--muted); max-width: 600px; }
.cv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
.cv-stats div { padding: 16px; border-radius: 16px; border: 1px solid transparent; background: var(--gloss) padding-box, var(--slab) padding-box, var(--edge) border-box; box-shadow: var(--tile-shadow); }
.cv-stats b { display: block; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cv-stats span { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .cv-stats { grid-template-columns: repeat(2, 1fr); } }
.cv .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.cv-block { padding-top: 96px; }
.cv-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: 24px; border: 1px solid transparent;
  background: var(--gloss) padding-box, linear-gradient(110deg, rgba(139, 92, 246, 0.24), rgba(18, 18, 29, 0.96) 55%, rgba(34, 211, 238, 0.14)) padding-box, var(--edge) border-box; box-shadow: var(--tile-shadow); }
.cv-cta h2 { font-size: 28px; margin-bottom: 6px; }

/* business card: a 3D card that flips, with the print files beside it */
.bc { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; max-width: 1040px; margin: 0 auto; }
@media (max-width: 860px) { .bc { grid-template-columns: 1fr; } }
.bc-stage { perspective: 1400px; text-align: center; }
.bc-card { display: block; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1050 / 600; padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotateX(8deg) rotateY(-10deg); transform-style: preserve-3d; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.bc-card:hover { transform: rotateX(4deg) rotateY(-4deg) translateY(-6px); }
.bc-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 8px; border-radius: 14px; }
.bc-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .8, .2, 1); }
.bc-card.flipped .bc-inner { transform: rotateY(180deg); }
/* the preview images are cut to the trim size (the downloads keep the 1/8 in bleed) */
.bc-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 6px 0 -1px #05050a, 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(139, 92, 246, 0.7); }
.bc-back { transform: rotateY(180deg); }
.bc-hint { margin-top: 18px; font-size: 13px; color: var(--dim); }
.bc-side { display: grid; gap: 12px; }
.bc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bc-spec { list-style: none; margin: 8px 0 0; padding: 16px; border-radius: 16px; display: grid; gap: 8px; font-size: 14px;
  border: 1px solid transparent; background: var(--gloss) padding-box, var(--slab) padding-box, var(--edge) border-box; box-shadow: var(--tile-shadow); }
.bc-spec li { display: flex; justify-content: space-between; gap: 12px; }
.bc-spec b { color: var(--text); }
.bc-spec span { color: var(--muted); text-align: right; }
.bc-spec li { flex-wrap: wrap; min-width: 0; }
@media (max-width: 520px) { .bc-spec li { display: grid; gap: 2px; } .bc-spec span { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .bc-inner, .bc-card { transition: none; } }

/* Resume on paper (owner 2026-11-19: "make the resume ... something like this, make it nice to save as pdf"; "when click
   save as pdf only save the page"). A classic white sheet: name and contact on top, summary, skills on the left, work
   experience on the right. Save as PDF prints only this sheet (see @media print below). */
.rs-tools { display: flex; justify-content: center; margin: -8px 0 26px; }
.rs { --ink: #161616; --soft: #4a4a4a; --line: #2a2a2a;
  max-width: 880px; margin: 0 auto; padding: 60px 64px 56px; background: #fff; color: var(--ink); border-radius: 6px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.55; text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 70px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px -30px rgba(139, 92, 246, 0.6); }
.rs a { color: inherit; text-decoration: none; }
.rs a:hover { text-decoration: underline; }
.rs ul { list-style: none; margin: 0; padding: 0; }
.rs h2, .rs h3, .rs h4 { color: var(--ink); text-shadow: none; }
.rs-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.rs-name { font-size: 44px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.05; text-transform: uppercase; margin: 0; }
.rs-title { margin: 8px 0 0; font-size: 15px; font-style: italic; letter-spacing: 0.42em; text-transform: uppercase; color: #6a6a6a; }
.rs-contact { text-align: right; font-size: 13px; color: var(--soft); display: grid; gap: 6px; padding-top: 4px; }
.rs-h { font-size: 17px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; margin: 0 0 14px; }
.rs-summary { padding: 26px 0; border-bottom: 1px solid var(--line); }
.rs-summary p { margin: 0; color: #333; font-size: 13.5px; line-height: 1.65; }
.rs-cols { display: grid; grid-template-columns: 0.72fr 1.28fr; padding-top: 30px; }
.rs-side { padding-right: 32px; }
.rs-main { padding-left: 32px; border-left: 1px solid var(--line); }
.rs-side h4 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 16px 0 6px; }
.rs-side .rs-h + h4 { margin-top: 0; }
.rs-side li { color: var(--soft); font-size: 13.5px; letter-spacing: 0.02em; padding: 3px 0; }
.rs-side hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.rs-facts li { display: flex; align-items: baseline; gap: 10px; }
.rs-facts b { min-width: 26px; font-size: 18px; font-weight: 800; color: var(--ink); }
.rs-job { margin-bottom: 20px; }
.rs-job:last-child { margin-bottom: 0; }
.rs-job h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.rs-meta { margin: 2px 0 6px; font-size: 13px; font-style: italic; color: var(--soft); }
.rs-job ul { list-style: disc; padding-left: 18px; display: grid; gap: 4px; }
.rs-job li { font-size: 13.5px; color: #2b2b2b; line-height: 1.5; }
@media screen and (max-width: 760px) {
  .rs { padding: 32px 22px; border-radius: 4px; }
  .rs-top { flex-direction: column; gap: 14px; }
  .rs-contact { text-align: left; }
  .rs-name { font-size: 34px; }
  .rs-title { letter-spacing: 0.28em; font-size: 13px; }
  .rs-cols { grid-template-columns: 1fr; }
  .rs-side { padding-right: 0; }
  .rs-main { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
}

/* Save as PDF: only the resume sheet, on US Letter paper */
@media print {
  @page { size: letter; margin: 0.42in 0.55in; }
  :root, html, body { background: #fff !important; color-scheme: light !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::before, body::after, header.top, footer, #lc-root, .cv > :not(#resume), #resume > .head, #resume > .rs-tools { display: none !important; }
  .cv, .cv-block { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  [data-rv] { opacity: 1 !important; translate: none !important; transform: none !important; }
  /* sized to fit one page */
  .rs { max-width: none; padding: 0; box-shadow: none; border-radius: 0; font-size: 9pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rs-name { font-size: 26pt; }
  .rs-title { font-size: 9.5pt; margin-top: 4pt; }
  .rs-contact { font-size: 8.5pt; gap: 2pt; }
  .rs-h { font-size: 10.5pt; margin-bottom: 7pt; }
  .rs-top { padding-bottom: 10pt; }
  .rs-summary { padding: 10pt 0; }
  .rs-summary p { font-size: 8.8pt; line-height: 1.45; }
  .rs-cols { grid-template-columns: 0.6fr 1.4fr; padding-top: 12pt; }
  .rs-side { padding-right: 16pt; }
  .rs-main { padding-left: 16pt; }
  .rs-side h4 { font-size: 8pt; margin: 8pt 0 2pt; }
  .rs-side li { font-size: 8.8pt; padding: 0; line-height: 1.42; }
  .rs-side hr, .rs-side hr ~ * { display: none; }
  .rs-job { break-inside: avoid; margin-bottom: 6pt; }
  .rs-job h4 { font-size: 8.5pt; }
  .rs-meta { font-size: 8.5pt; margin: 1pt 0 3pt; }
  .rs-job ul { gap: 1pt; padding-left: 13pt; }
  .rs-job li { font-size: 8.7pt; line-height: 1.34; }
  .rs-side h4, .rs-h { break-after: avoid; }
  .rs a:hover { text-decoration: none; }
}
