/* ============================================================
   Harry Puryear — personal site
   Warm, human, plain-spoken.
   ============================================================ */

/* ---------- Theme tokens (warm) ---------- */
:root {
  --bg:        #f6f1e8;
  --bg-2:      #efe7d8;
  --surface:   #fffdf8;
  --surface-2: #f3ece0;
  --ink:       #2b2620;
  --ink-2:     #6f675b;
  --ink-3:     #9c9385;
  --line:      #e3d9c8;
  --line-2:    #d6cab4;
  --accent:    #1f7a5c;   /* deep green */
  --accent-2:  #c98a3e;   /* warm ochre */
  --accent-ink:#ffffff;
  --accent-soft:#e3efe8;
  --shadow:    18px 22px 50px -28px rgba(60,40,20,.45);
  --shadow-sm: 6px 8px 22px -14px rgba(60,40,20,.40);
  --focus:     #1f7a5c;
  --radius:    10px;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, monospace;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.04em;
  box-shadow: var(--shadow-sm);
}
.brand b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand .sub { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 7vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 0.98; letter-spacing: -0.035em; margin: 22px 0 0;
}
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-top: 26px; max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--ink-3); font-size: 14px; }
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: #4caf6d; box-shadow: 0 0 0 4px color-mix(in srgb, #4caf6d 22%, transparent); }

/* hero visual */
.hero-visual { position: relative; }
.portrait-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.portrait-frame .ph { aspect-ratio: 4/5; }
.float-card {
  position: absolute; left: -26px; bottom: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow); max-width: 250px;
  display: flex; gap: 12px; align-items: flex-start;
}
.float-card .fc-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.float-card .fc-t { font-size: 13.5px; font-weight: 600; }
.float-card .fc-s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .float-card { left: auto; right: 0; }
}

/* ---------- Image placeholder (drop real photos into /images) ---------- */
.ph { position: relative; display: block; width: 100%; background: var(--surface-2); }
.ph::before {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; padding: 20px;
  color: var(--ink-3); font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: .04em; line-height: 1.5;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 16px; letter-spacing: -0.03em; }
.sec-head p { margin-top: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.svc-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.svc-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 14px 0 18px; }
.svc h3 { font-size: 22px; letter-spacing: -0.02em; }
.svc > p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; }
.svc .ba {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2);
  display: grid; gap: 8px; font-size: 13.5px;
}
.svc .ba .row { display: flex; gap: 9px; align-items: baseline; }
.svc .ba .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; flex-shrink: 0; line-height: 1.4; }
.svc .ba .before .tag { background: var(--surface-2); color: var(--ink-3); }
.svc .ba .after .tag  { background: var(--accent-soft); color: var(--accent); }
.svc .ba .row span:last-child { color: var(--ink-2); }
.svc .ba .after span:last-child { color: var(--ink); font-weight: 500; }

/* ---------- Approach (banded section) ---------- */
.demo { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-note { margin-top: 26px; font-size: 13px; color: var(--ink-3); text-align: center; font-family: var(--font-mono); }

/* ---------- Approach map (you say → I reach for) ---------- */
.map { margin-top: 48px; display: grid; gap: 12px; }
.map-head { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 8px; padding: 0 24px 2px; }
.map-head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.map-head span:last-child { color: var(--accent); }
.map-row {
  display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.map-row:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.map-said { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.map-arrow { color: var(--accent); display: grid; place-items: center; }
.map-did { color: var(--ink); font-size: 15.5px; font-weight: 500; line-height: 1.5; }
@media (max-width: 720px) {
  .map-head { display: none; }
  .map-row { grid-template-columns: 1fr; gap: 12px; }
  .map-arrow { justify-self: start; transform: rotate(90deg); }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-n {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 19px;
}
.step h3 { font-size: 21px; margin-top: 20px; }
.step p { color: var(--ink-2); margin-top: 9px; font-size: 15px; }
.step .arrow { position: absolute; right: -28px; top: 44px; color: var(--line-2); z-index: 2; }
@media (max-width: 760px) { .step .arrow { display: none; } }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
.about-photo .ph { aspect-ratio: 1/1; }
.about h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 16px; }
.about-body { margin-top: 22px; display: grid; gap: 16px; color: var(--ink-2); font-size: 16.5px; }
.about-body strong { color: var(--ink); font-weight: 600; }
.about-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.pill { font-size: 13.5px; font-weight: 500; padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.pill b { color: var(--accent); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-card {
  margin-top: 30px; background: var(--ink); color: var(--bg);
  border-radius: 18px; padding: clamp(34px, 5vw, 64px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card .eyebrow { color: var(--accent-2); }
.contact-card .eyebrow::before { background: var(--accent-2); }
.contact-card h2 { font-size: clamp(30px, 4.6vw, 52px); margin-top: 16px; color: inherit; }
.contact-card .lead { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); margin-top: 16px; max-width: 36ch; }
.contact-actions { display: grid; gap: 14px; }
.contact-actions .btn-primary { justify-content: center; padding: 17px 24px; font-size: 16.5px; }
.contact-list { display: grid; gap: 2px; margin-top: 4px; }
.contact-row { display: flex; align-items: center; gap: 13px; padding: 13px 4px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); text-decoration: none; color: inherit; transition: padding .2s ease; }
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { padding-left: 10px; }
.contact-row .ci { width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--bg) 14%, transparent); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .cl { font-size: 12px; opacity: .6; font-family: var(--font-mono); letter-spacing: .05em; }
.contact-row .cv { font-size: 15.5px; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 44px; border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.2vw, 22px); color: var(--ink); letter-spacing: -0.02em; }
.faq-q .pm { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .25s ease; color: var(--ink-2); }
.faq-item.open .pm { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding-bottom: 24px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }

/* ---------- Footer ---------- */
.footer { padding: 54px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line); }
.footer .brand b { font-size: 16px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-fine { color: var(--ink-3); font-size: 13px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
