/* Ralph West — Portfolio v2
   Sales-pitch + resume hybrid. Inspired by The Buckeye Law Group pitch.
   Dark navy + ivory serif + gold metric numbers + red accent.
*/

:root {
  --navy-0: #060d1c;
  --navy-1: #0a1628;
  --navy-2: #122036;
  --navy-3: #1a2942;
  --navy-4: #243556;
  --border: #2a3a5a;
  --border-soft: rgba(255,255,255,0.07);

  --ivory: #f5f1e8;
  --ivory-soft: #e3dcc9;
  --body: #c0bdb1;
  --body-mid: #9a9a8e;
  --muted: #7a8499;

  --red: #e63946;
  --red-soft: #ef5b66;
  --gold: #d4af37;
  --gold-soft: #c8a96a;
  --gold-hi: #f1c947;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 64px);

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-1);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }

/* ───────────── NAV ───────────── */
nav.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
}
nav.topnav .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ivory);
}
nav.topnav .links { display: flex; gap: 28px; align-items: center; }
nav.topnav .links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  letter-spacing: 0.02em;
  transition: color .15s;
}
nav.topnav .links a:hover { color: var(--ivory); }
nav.topnav .cta {
  background: var(--red);
  color: white !important;
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
nav.topnav .cta:hover { background: var(--red-soft); }
.menu-toggle { display: none; background: none; border: none; color: var(--ivory); padding: 8px; cursor: pointer; }
@media (max-width: 900px) {
  nav.topnav .links { display: none; flex-direction: column; gap: 16px; align-items: flex-start; position: absolute; top: 100%; right: 0; left: 0; background: var(--navy-1); padding: 20px var(--pad); border-bottom: 1px solid var(--border); }
  nav.topnav .links.open { display: flex; }
  .menu-toggle { display: block; }
}

main { padding-top: 60px; }

/* ───────────── TYPOGRAPHY ───────────── */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ivory); margin: 0 0 18px; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(48px, 7vw, 96px); letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.01em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: clamp(17px, 1.6vw, 19px); }
p { margin: 0 0 14px; }
.lede { font-size: 18px; line-height: 1.65; color: var(--ivory-soft); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin: 0 0 14px;
}
.muted { color: var(--muted); }
strong { color: var(--ivory); font-weight: 600; }

/* ───────────── SECTION ───────────── */
section { padding: clamp(80px, 9vw, 140px) var(--pad); position: relative; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-divider { height: 1px; background: var(--border); max-width: var(--max); margin: 0 auto; }

/* ───────────── HERO ───────────── */
.hero {
  background: radial-gradient(ellipse at top right, var(--navy-3) 0%, var(--navy-1) 60%);
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(40px, 5vw, 80px);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--gold) 50%, var(--red) 70%, transparent);
  opacity: 0.5;
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-content .eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 16px; }
.hero h1 .first { display: block; }
.hero .role-line {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero .pitch {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.5;
  color: var(--ivory-soft);
  margin: 0 0 36px;
  max-width: 540px;
  border-left: 2px solid var(--red);
  padding-left: 22px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--red); color: white !important; }
.btn-primary:hover { background: var(--red-soft); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ivory) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold) !important; }

.hero-portrait { position: relative; }
.hero-portrait .frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--navy-2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hero-portrait .frame::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(10,22,40,0.4));
  z-index: 1; pointer-events: none;
}
.hero-portrait .frame img { width: 100%; display: block; }
.hero-portrait .corner-tag {
  position: absolute; top: 18px; left: 18px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-radius: 2px;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 380px; margin: 0 auto; }
}

/* ───────────── METRIC BAR ───────────── */
.metrics {
  background: var(--navy-2);
  padding: 36px var(--pad);
  border-bottom: 1px solid var(--border);
}
.metrics-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  text-align: center;
}
.metric .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 3.2vw, 44px);
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.01em;
}
.metric .lbl {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body-mid);
  margin-top: 8px;
  display: block;
}
@media (max-width: 880px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; } }
@media (max-width: 480px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }

/* ───────────── POSITIONING / PITCH ───────────── */
.positioning {
  background: var(--navy-1);
}
.positioning-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.positioning .pitch-body p { font-size: 17px; color: var(--ivory-soft); margin-bottom: 18px; }
.positioning .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.positioning .tag {
  border: 1px solid var(--border);
  color: var(--ivory-soft);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255,255,255,0.02);
}
@media (max-width: 880px) { .positioning-grid { grid-template-columns: 1fr; } }

/* ───────────── WHAT I DO (capabilities) ───────────── */
.capabilities { background: var(--navy-1); padding-top: clamp(40px, 4vw, 60px); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.cap-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 26px;
  position: relative;
  transition: all .25s;
}
.cap-card:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.cap-card .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.cap-card h3 { color: var(--ivory); margin-bottom: 14px; font-size: 22px; }
.cap-card p { font-size: 14.5px; color: var(--body); margin-bottom: 18px; }
.cap-card .tools { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-card .tool {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold-soft);
  background: rgba(212,175,55,0.07);
  padding: 4px 9px;
  border-radius: 3px;
  border: 1px solid rgba(212,175,55,0.2);
}
@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }

/* ───────────── ACTIVE BRANDS ───────────── */
.active-brands { background: var(--navy-2); }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.brand-card {
  background: var(--navy-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  display: flex; flex-direction: column;
  transition: all .25s;
}
.brand-card:hover { border-color: var(--red); }
.brand-card .role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.brand-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--ivory);
}
.brand-card .stage {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.brand-card p { font-size: 14px; color: var(--body); flex: 1; }
.brand-card .arrow { color: var(--red); margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
@media (max-width: 1000px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .brands-grid { grid-template-columns: 1fr; } }

/* ───────────── EXPERIENCE TIMELINE ───────────── */
.experience { background: var(--navy-1); }
.exp-list { margin-top: 48px; max-width: 920px; }
.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: 1px solid var(--border); }
.exp-item .when {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 6px;
}
.exp-item h3 { font-size: 20px; color: var(--ivory); margin-bottom: 4px; }
.exp-item .org { font-size: 13px; color: var(--red); margin-bottom: 12px; letter-spacing: 0.04em; font-weight: 600; }
.exp-item ul { margin: 0; padding-left: 18px; color: var(--body); font-size: 14.5px; }
.exp-item ul li { margin-bottom: 6px; }
.exp-item ul li::marker { color: var(--red); }
@media (max-width: 720px) {
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
  .exp-item .when { padding-top: 0; }
}

/* ───────────── PROJECTS ───────────── */
.projects { background: var(--navy-2); }
.projects-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: 48px; }
.projects-head p.muted { max-width: 480px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--navy-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all .25s;
}
.project-card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.project-card .cover {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--navy-3);
}
.project-card .body { padding: 20px 22px 24px; }
.project-card .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin: 0 0 4px;
}
.project-card .title { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ivory); margin: 0 0 12px; line-height: 1.2; }
.project-card .desc { font-size: 13.5px; color: var(--body); line-height: 1.55; margin: 0; }
@media (max-width: 1000px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

/* ───────────── WEBSITES ───────────── */
.websites { background: var(--navy-1); }
.web-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.web-grid img {
  width: 100%; height: auto;
  background: transparent;
  border-radius: 4px;
  transition: transform .25s;
}
.web-grid img:hover { transform: scale(1.02); }
@media (max-width: 880px) { .web-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .web-grid { grid-template-columns: 1fr; } }

/* ───────────── VIDEOS ───────────── */
.videos { background: var(--navy-2); }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.video-card .meta { margin-bottom: 12px; }
.video-card .meta .org { font-size: 11px; color: var(--red); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin: 0 0 4px; }
.video-card .meta .role { font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--ivory); margin: 0; line-height: 1.2; }
.video-card .frame {
  background: black;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
}
.video-card .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1000px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .videos-grid { grid-template-columns: 1fr; } }

/* ───────────── SOCIAL ───────────── */
.social { background: var(--navy-1); }
.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.social-cell {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.social-cell .phone {
  width: 100%; max-width: 180px;
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 6px;
}
.social-cell .handle { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.02em; }
.social-cell .followers { font-size: 11px; color: var(--body-mid); }
@media (max-width: 1000px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }

/* ───────────── TESTIMONIALS ───────────── */
.testimonials { background: var(--navy-2); }
.test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.test {
  background: var(--navy-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
}
.test img { width: 100px; height: 130px; border-radius: 4px; object-fit: cover; border: 1px solid var(--border); }
.test .who { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ivory); margin: 0; }
.test .org { font-size: 12px; color: var(--gold); letter-spacing: 0.04em; margin: 4px 0 16px; }
.test .quote { font-size: 14px; color: var(--body); line-height: 1.65; font-style: italic; margin: 0; }
.test .quote::before { content: "“"; font-family: var(--serif); font-size: 36px; color: var(--red); line-height: 0; vertical-align: -10px; margin-right: 4px; }
@media (max-width: 760px) { .test-grid { grid-template-columns: 1fr; } .test { grid-template-columns: 1fr; } .test img { width: 80px; height: 100px; } }

/* ───────────── CERTIFICATIONS ───────────── */
.certs { background: var(--navy-1); }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  margin-top: 48px;
}
.cert {
  text-align: center;
  padding: 16px 8px;
  display: flex; flex-direction: column; align-items: center;
}
.cert .laurel { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; color: var(--gold); }
.cert .name {
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.04em;
  max-width: 170px; line-height: 1.2;
  color: var(--ivory);
}
.cert .source { font-size: 10.5px; color: var(--body-mid); letter-spacing: 0.06em; margin-top: 6px; }
@media (max-width: 880px) { .certs-grid { grid-template-columns: repeat(2,1fr); } }

/* ───────────── EDUCATION ───────────── */
.education { background: var(--navy-1); padding-top: 0; }
.edu-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 60px); }
.edu-list { display: flex; flex-direction: column; }
.edu-item {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
}
.edu-item:last-child { border-bottom: 1px solid var(--border); }
.edu-item .deg { font-family: var(--serif); font-weight: 700; color: var(--ivory); margin: 0; font-size: 17px; }
.edu-item .meta { font-size: 13px; color: var(--body-mid); margin: 4px 0 0; }
.edu-item .yr { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.04em; }
@media (max-width: 760px) { .edu-grid { grid-template-columns: 1fr; } }

/* ───────────── CTA FOOTER ───────────── */
.cta-footer {
  background: linear-gradient(180deg, var(--navy-1), var(--navy-0));
  padding: clamp(80px, 8vw, 120px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-footer h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; }
.cta-footer p.lede { max-width: 580px; margin: 0 auto 36px; }
.cta-footer .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ───────────── FOOTER ───────────── */
footer.site-footer {
  background: var(--navy-0);
  padding: 36px var(--pad);
  border-top: 1px solid var(--border-soft);
}
footer.site-footer .inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
footer.site-footer .name { font-family: var(--serif); font-weight: 700; color: var(--ivory); font-size: 16px; }
footer.site-footer .links { display: flex; gap: 22px; }
footer.site-footer a { color: var(--body); font-size: 13px; }
footer.site-footer a:hover { color: var(--gold); }
footer.site-footer .meta { font-size: 12px; color: var(--body-mid); }
