/* =========================================================
   Zack Hadley — restrained, editorial design system
   ========================================================= */
:root {
  color-scheme: dark;

  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --surface: #101012;
  --surface-2: #16161a;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.16);

  --ink: #f6f6f7;
  --ink-soft: #c9c9ce;
  --muted: #8a8a92;
  --muted-2: #62626a;

  --radius: 10px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shell: min(100% - 48px, 1120px);

  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgb(255 255 255 / 0.16); }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.12; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0; color: var(--muted); }

.eyebrow {
  display: block;
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* =========================================================
   Layout
   ========================================================= */
.shell { width: var(--shell); margin-inline: auto; }
main { padding-bottom: 24px; }

.section-shell,
.resume-lower,
.process-strip,
.payment-section,
.cta-band { width: var(--shell); margin: clamp(64px, 9vw, 104px) auto 0; }

.section-heading { max-width: 680px; margin-bottom: 40px; }
.section-heading h2 { max-width: 18ch; }
.section-heading p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =========================================================
   Buttons
   ========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.button:hover { background: rgb(255 255 255 / 0.05); border-color: rgb(255 255 255 / 0.28); }
.button svg { width: 16px; height: 16px; }

.button.primary {
  border-color: transparent;
  background: var(--ink);
  color: #0a0a0b;
}
.button.primary:hover { background: #ffffff; }

.actions, .payment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.scrolled {
  background: rgb(10 10 11 / 0.8);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: var(--shell);
  margin-inline: auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
nav { display: flex; align-items: center; gap: 30px; }
nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 1px;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px);
}
.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero-copy { max-width: 660px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede {
  max-width: 540px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-meta {
  margin-bottom: 26px;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Profile card */
.profile-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  filter: grayscale(1) contrast(1.02);
}
.profile-meta { padding: 16px 6px 6px; }
.profile-meta h2 { font-size: 1.18rem; margin-bottom: 6px; }
.profile-meta p { font-size: 0.92rem; line-height: 1.5; color: var(--muted); }

/* =========================================================
   Stats
   ========================================================= */
.stats-strip {
  width: var(--shell);
  margin: clamp(8px, 2vw, 20px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-strip div {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.stats-strip div:last-child { border-right: 0; }
.stats-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stats-strip span { color: var(--muted); font-size: 0.94rem; }

/* =========================================================
   Experience
   ========================================================= */
.experience-grid {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.experience-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  padding: 30px;
  border-top: 1px solid var(--line);
  transition: background 0.18s var(--ease);
}
.experience-card:first-child { border-top: 0; }
.experience-card:hover { background: var(--bg-2); }

.resume-logo {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.experience-body { min-width: 0; }
.date {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.experience-body h3, .education-row h3 { margin-bottom: 6px; }
.meta { margin-bottom: 12px; color: var(--muted); font-size: 0.9rem; }
.experience-body > p:not(.meta) { color: var(--ink-soft); line-height: 1.6; max-width: 60ch; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* =========================================================
   Education + strengths
   ========================================================= */
.resume-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
}
.education-block, .strengths-block {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.education-block .section-heading,
.strengths-block .section-heading { margin-bottom: 24px; }
.education-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.education-row p { color: var(--ink-soft); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.checklist li:first-child { border-top: 0; padding-top: 0; }

/* =========================================================
   Services
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 32px;
  border-left: 1px solid var(--line);
  transition: background 0.18s var(--ease);
}
.service-card:first-child { border-left: 0; }
.service-card:hover { background: var(--bg-2); }

.service-number {
  margin-bottom: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin-bottom: 24px; color: var(--ink-soft); line-height: 1.6; }
.service-card .price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.service-card .price span { color: var(--muted); font-size: 0.84rem; font-weight: 400; }

/* =========================================================
   Process
   ========================================================= */
.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-strip div {
  padding: 30px;
  border-left: 1px solid var(--line);
}
.process-strip div:first-child { border-left: 0; }
.process-strip .step-num {
  display: block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.process-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.process-strip p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* =========================================================
   Payment
   ========================================================= */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.payment-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.payment-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #fff;
}
.payment-card h3 { margin-bottom: 4px; }
.payment-card .handle { margin-bottom: 18px; color: var(--muted); font-size: 0.94rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(36px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cta-band .cta-copy { max-width: 520px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); font-size: 1.02rem; }
.cta-band .actions { margin-top: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  width: var(--shell);
  margin: clamp(64px, 9vw, 100px) auto 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-size: 0.88rem;
}
.site-footer .foot-brand { color: var(--ink-soft); font-weight: 500; }
.site-footer nav { gap: 22px; }
.site-footer nav a { color: var(--muted); font-size: 0.88rem; }
.site-footer nav a:hover { color: var(--ink); }

/* =========================================================
   Scroll reveal (subtle)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .resume-hero { grid-template-columns: 1fr; }
  .profile-card { max-width: 360px; }
  .resume-lower,
  .payment-methods { grid-template-columns: 1fr; }
  .stats-strip,
  .service-grid,
  .process-strip { grid-template-columns: 1fr; }
  .stats-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-strip div:last-child { border-bottom: 0; }
  .service-card,
  .process-strip div { border-left: 0; border-top: 1px solid var(--line); }
  .service-card:first-child,
  .process-strip div:first-child { border-top: 0; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 32px, 1120px); }

  nav { display: none; }
  nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(14 14 16 / 0.98);
    backdrop-filter: blur(12px);
  }
  nav.open a { padding: 12px 14px; border-radius: var(--radius-sm); }
  nav.open a:hover { background: rgb(255 255 255 / 0.05); }
  nav.open a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: inline-flex; }

  .experience-card { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px; }
  .resume-logo { width: 44px; height: 44px; }
  .education-block, .strengths-block { padding: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .payment-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .payment-card img { max-width: 200px; }
  .actions, .payment-links { width: 100%; }
  .actions .button, .payment-links .button { flex: 1 1 auto; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}
