/* The landing page and the Ancestry tab: Family's split screen and Raleway text with Career's Poppins
   headings, colour-coded rows and five-colour band. The palette arrives as --blue, --white, --red, --green, --yellow. */
:root { --ink: #121318; --ink-2: #4a4d57; --ink-3: #8a8d96; --paper: #fbfaf7; --line: #e7e4dd; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cv-home { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.75 Raleway, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.cv-home a { color: inherit; }
.cv-home img { display: block; max-width: 100%; }

.cv-split { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: 100vh; min-height: 100svh; }
.cv-split-short { grid-template-columns: 1fr; }
.cv-portrait { position: sticky; top: 0; height: 100vh; height: 100svh; margin: 0; overflow: hidden; background: #1b1c22; }
.cv-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; animation: cv-zoom 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.cv-portrait .cv-band { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; height: auto; flex-direction: column; margin: 0; border-radius: 0; }

.cv-intro { display: flex; flex-direction: column; justify-content: center; padding: 110px clamp(28px, 7vw, 120px) 48px; max-width: 760px; }
.cv-split-short .cv-intro { margin: 0 auto; min-height: 100vh; }
.cv-kicker { margin: 0 0 18px; font: 600 12px/1.4 Poppins, Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.cv-name { margin: 0; font: 700 clamp(44px, 6.2vw, 84px)/1.02 Poppins, Arial, sans-serif; letter-spacing: -.035em; }
.cv-name span { display: inline-block; }
.cv-band { display: flex; width: 132px; height: 5px; margin: 26px 0 30px; border-radius: 3px; overflow: hidden; }
.cv-band i { flex: 1; }
.cv-band i:nth-child(1) { background: var(--blue); }
.cv-band i:nth-child(2) { background: var(--white); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.cv-band i:nth-child(3) { background: var(--red); }
.cv-band i:nth-child(4) { background: var(--green); }
.cv-band i:nth-child(5) { background: var(--yellow); }
.cv-bio { color: var(--ink-2); max-width: 36em; }
.cv-bio p { margin: 0 0 1em; }
.cv-bio a { color: var(--blue); }

.cv-explore { margin: 26px 0 12px; font: 600 12px/1.4 Poppins, Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.cv-rows { display: grid; border-top: 1px solid var(--line); }
.cv-row {
  --row: var(--blue);
  position: relative; display: grid; grid-template-columns: 54px 1fr 40px; align-items: center; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s cubic-bezier(.2, .8, .2, 1);
}
.cv-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--row); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.cv-row-num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 4px; background: var(--row); color: #fff; font: 600 15px/1 Poppins, Arial, sans-serif; letter-spacing: .04em; transition: transform .3s; }
.cv-row-text { display: grid; gap: 2px; min-width: 0; }
.cv-row-text b { font: 600 21px/1.25 Poppins, Arial, sans-serif; letter-spacing: -.01em; }
.cv-row-text small { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.cv-row-go svg, .cv-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cv-row-go { justify-self: end; color: var(--ink-3); transition: transform .3s, color .3s; }
.cv-row:hover, .cv-row:focus-visible { padding-left: 12px; outline: none; }
.cv-row:hover::after, .cv-row:focus-visible::after { transform: scaleX(1); }
.cv-row:hover .cv-row-go, .cv-row:focus-visible .cv-row-go { transform: translateX(4px); color: var(--row); }
.cv-row:hover .cv-row-num { transform: rotate(-4deg); }

.cv-button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none; font: 600 14px/1 Poppins, Arial, sans-serif; letter-spacing: .02em; transition: background .25s, transform .25s; }
.cv-button:hover { background: var(--blue); transform: translateY(-1px); }

.cv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; font-size: 13px; color: var(--ink-3); }
.cv-foot a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cv-foot a:hover { color: var(--ink); border-color: var(--ink); }

/* entrance */
.cv-intro > * { animation: cv-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.cv-intro > :nth-child(2) { animation-delay: .06s; } .cv-intro > :nth-child(3) { animation-delay: .12s; }
.cv-intro > :nth-child(4) { animation-delay: .18s; } .cv-intro > :nth-child(5) { animation-delay: .24s; }
.cv-intro > :nth-child(6) { animation-delay: .3s; } .cv-intro > :nth-child(7) { animation-delay: .36s; }
@keyframes cv-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes cv-zoom { from { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .cv-intro > *, .cv-portrait img { animation: none; } }

@media (max-width: 900px) {
  .cv-split { grid-template-columns: 1fr; }
  .cv-portrait { position: relative; height: 56vh; height: 56svh; }
  .cv-portrait .cv-band { top: auto; left: 0; width: auto; height: 6px; flex-direction: row; }
  .cv-intro { padding: 36px 22px 40px; }
  .cv-split-short .cv-intro { padding-top: 110px; }
}
@media (max-width: 480px) {
  body.cv-home { font-size: 16px; }
  .cv-row { grid-template-columns: 44px 1fr 28px; gap: 12px; }
  .cv-row-num { width: 44px; height: 44px; font-size: 13px; }
  .cv-row-text b { font-size: 18px; }
}
