/* ---- Resume landing — brand palette (blush + ink) ---- */
:root {
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-faint: #9ca3af;
  --blush: #fdece8;
  --line: rgba(17, 24, 39, 0.08);
  --card: #ffffff;
  --navy: #21384e;
  --cream: #ebe7de;
  --radius: 22px;
  --font: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(120% 90% at 85% 0%, var(--blush) 0%, #ffffff 55%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

/* ---- Shared layout ---- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
}
.brand .mark img { width: 22px; height: 22px; filter: invert(1); }

.site-header {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.site-header nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600;
  font-size: 15px; margin-left: 22px;
}
.site-header nav a:hover { color: var(--ink); }

/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - 86px);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 40px;
  padding: 20px 0 40px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 800;
}
.hero p.lead {
  margin-top: 20px; font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft); max-width: 30ch;
}
.cta { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.soon { color: var(--ink-faint); font-size: 14px; font-weight: 600; }

/* tiny feature row */
.feats { margin-top: 40px; display: flex; gap: 26px; flex-wrap: wrap; }
.feat { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.feat .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* ---- Animated CV stack ---- */
.stage { position: relative; display: grid; place-items: center; }
/* Fanned deck (like the app's onboarding): center card upright, two behind
   peeking left/right; they auto-advance so each card takes the front in turn. */
.cv-stack {
  position: relative;
  width: min(320px, 74vw); aspect-ratio: 1 / 1.414;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.cv {
  position: absolute; inset: 0;
  background: var(--card); border-radius: 16px; overflow: hidden;
  box-shadow: 0 26px 50px -22px rgba(17,24,39,0.32), 0 0 0 1px var(--line);
  animation: fan 8.4s infinite cubic-bezier(.65,0,.35,1);
  will-change: transform, opacity;
}
.cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv:nth-of-type(1) { animation-delay: 0s; }
.cv:nth-of-type(2) { animation-delay: -2.8s; }
.cv:nth-of-type(3) { animation-delay: -5.6s; }

@keyframes fan {
  /* front / center */
  0%,  28%  { transform: translate(0, 0)     rotate(0deg)    scale(1);   opacity: 1;   z-index: 30; }
  /* behind, peeking right */
  34%, 62%  { transform: translate(26%, 14px) rotate(5.7deg)  scale(.9); opacity: .5;  z-index: 20; }
  /* behind, peeking left */
  68%, 96%  { transform: translate(-26%, 14px) rotate(-5.7deg) scale(.9); opacity: .5; z-index: 10; }
  100%      { transform: translate(0, 0)     rotate(0deg)    scale(1);   opacity: 1;   z-index: 30; }
}

/* mini resume building blocks */
.r-name { height: 15px; width: 55%; border-radius: 4px; background: var(--ink); }
.r-sub  { height: 8px;  width: 34%; border-radius: 3px; background: var(--ink-faint); margin-top: 8px; }
.r-head { height: 7px;  width: 26%; border-radius: 3px; background: var(--ink); margin: 18px 0 9px; opacity: .85; }
.r-line { height: 6px;  border-radius: 3px; background: rgba(17,24,39,.14); margin-bottom: 7px; }
.r-line.s { width: 60%; } .r-line.m { width: 82%; } .r-line.l { width: 96%; }

.cv.two { display: grid; grid-template-columns: 1fr 38%; gap: 0; padding: 0; }
.cv.two .main { padding: 22px 16px 22px 22px; }
.cv.two .side { padding: 22px 16px; }
/* Noir */
.cv--noir .side { background: var(--navy); }
.cv--noir .side .r-head { background: #fff; opacity: .9; }
.cv--noir .side .r-line { background: rgba(255,255,255,.35); }
.cv--noir .side .r-name { background: rgba(255,255,255,.9); }
.cv--noir .side .r-sub { background: rgba(255,255,255,.5); }
/* Sterling (cream side, black ink) */
.cv--sterling .side { background: var(--cream); }
.cv--sterling .side .r-head { background: var(--ink); }
.cv--sterling .side .r-line { background: rgba(17,24,39,.18); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0; margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--ink-faint); font-size: 14px;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; margin-left: 20px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; flex-wrap: wrap; }

/* ---- Legal (privacy / terms) pages ---- */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 0 60px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; }
.legal .updated { color: var(--ink-faint); font-weight: 600; margin-top: 8px; }
.legal h2 { font-size: 20px; margin-top: 34px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-soft); margin-top: 12px; }
.legal ul { margin-top: 8px; padding-left: 20px; }
.legal a { color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft);
  text-decoration: none; font-weight: 700; margin-top: 30px; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta, .feats { justify-content: center; }
  .stage { order: -1; margin-bottom: 8px; }
  .site-header nav { display: none; }
}
