/* Raymond Hayden - portfolio stylesheet
   Palette: ink navy, cool paper, cobalt accent, steel muted, hairline
   Type: Archivo (display), Source Serif 4 (body), IBM Plex Mono (labels/data) */

:root {
  --ink: #16243d;
  --paper: #f6f7f4;
  --card: #ffffff;
  --accent: #1f5fbf;
  --muted: #5b6a7e;
  --line: #d8dde5;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--ink);
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1.1rem; }

a { color: var(--accent); }

.lede {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 44em;
}

.mark { 
  box-shadow: inset 0 -0.45em 0 rgba(31, 95, 191, 0.18);
}

/* Eyebrow labels, styled like chart field labels */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.eyebrow::after {
  content: "";
  flex: 1;
  max-width: 72px;
  height: 1px;
  background: var(--line);
}

.meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -0.4rem 0 1rem;
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }

.hero { padding: 5.5rem 0 4rem; }
.hero p.lede { margin-top: 0.5rem; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

.btn {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  display: inline-block;
}

.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); }

.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Vitals strip (signature element) ---------- */

.vitals {
  background: var(--ink);
  color: #eef1f6;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.vital { 
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 1.25rem;
}

.vital:first-child { border-left: none; padding-left: 0; }

.vital .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff;
  display: block;
  line-height: 1.1;
}

.vital .num em {
  font-style: normal;
  color: #7fa8e8;
}

.vital .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa8bd;
  display: block;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Process (real sequence, numbered) ---------- */

.process { margin-top: 1.5rem; display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 0.3rem;
}

.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Project entries ---------- */

.project { padding: 2.5rem 0; }
.project + .project { border-top: 1px solid var(--line); }
.project ul { padding-left: 1.2rem; }
.project li { margin-bottom: 0.5rem; }

.status-note {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */

.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.75rem 2rem;
  margin: 0 0 1.75rem;
}

.testimonial p:last-of-type { margin-bottom: 0; }

.testimonial cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.testimonial cite span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---------- Publication rows ---------- */

.pub {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}

.pub:last-child { border-bottom: 1px solid var(--line); }

.pub .kind {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.pub .title { font-weight: 600; font-family: "Archivo", system-ui, sans-serif; }
.pub .src { color: var(--muted); font-size: 0.92rem; display: block; margin-top: 0.2rem; }
.pub .go { font-family: "Archivo", system-ui, sans-serif; font-size: 0.88rem; font-weight: 700; white-space: nowrap; }

.talk-list { list-style: none; padding: 0; margin: 1rem 0 0; }

.talk-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.talk-list li:last-child { border-bottom: 1px solid var(--line); }

.talk-list .yr {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 48px;
}

/* ---------- Quote ---------- */

.pull-quote {
  font-size: 1.35rem;
  font-style: italic;
  max-width: 34em;
  margin: 0;
}

.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer a { color: var(--muted); }

/* ---------- Focus & motion ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .vitals { grid-template-columns: 1fr 1fr; }
  .vital { border-left: none; padding-left: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 0.3rem; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; padding-bottom: 0.5rem; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 0.75rem; }
  .site-nav a { display: block; padding: 0.6rem 0; }
  .vitals { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; }
}

/* ---------- v2: hero portrait, motion, polish ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.portrait {
  position: relative;
  margin: 0;
  max-width: 400px;
  justify-self: end;
}

.portrait img {
  width: 100%;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 18px 40px rgba(22, 36, 61, 0.18);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 12px;
  transform: translate(16px, 16px);
  z-index: 0;
}

.portrait figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.4rem;
  text-align: right;
}

/* Faint geometric backdrop in hero */
.hero {
  background-image:
    linear-gradient(var(--paper), var(--paper) 60%, rgba(31, 95, 191, 0.035)),
    repeating-linear-gradient(45deg, rgba(22, 36, 61, 0.025) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-45deg, rgba(22, 36, 61, 0.025) 0 1px, transparent 1px 28px);
}

/* Card hover lift */
.card, .testimonial {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(22, 36, 61, 0.1);
}

.btn { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.btn:active { transform: translateY(1px); }

/* Scroll reveal (JS adds .reveal, then .in when visible) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Hero load stagger */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .btn-row,
.hero .portrait,
.hero .vitals {
  animation: riseIn 0.7s ease both;
}

.hero h1 { animation-delay: 0.08s; }
.hero .lede { animation-delay: 0.16s; }
.hero .btn-row { animation-delay: 0.24s; }
.hero .portrait { animation-delay: 0.2s; }
.hero .vitals { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .btn-row, .hero .portrait, .hero .vitals { animation: none; }
  .card, .testimonial, .btn { transition: none; }
  .card:hover { transform: none; }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait { justify-self: start; max-width: 320px; }
}

/* ==========================================================================
   v3: readability, contrast, and a course-catalog design language
   ========================================================================== */

:root {
  --muted: #44536a;          /* darker for contrast */
  --accent2: #b06f14;        /* warm amber, decorative + selection */
}

::selection { background: rgba(217, 142, 43, 0.35); }

body { font-size: 1.125rem; line-height: 1.7; }

/* Comfortable line lengths for prose */
.section .wrap > p,
.project p,
.testimonial p { max-width: 70ch; }

.lede { font-size: 1.3rem; color: #3c4a60; }

h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); letter-spacing: -0.01em; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

/* Larger, clearer labels */
.eyebrow { font-size: 0.8rem; }
.meta { font-size: 0.8rem; }
.site-nav a { font-size: 0.95rem; padding: 0.6rem 0; }

/* Animated underline on the marked hero phrase */
.mark {
  box-shadow: none;
  background-image: linear-gradient(rgba(217, 142, 43, 0.45), rgba(217, 142, 43, 0.45));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.4em;
  animation: markDraw 0.9s ease 0.5s both;
}

@keyframes markDraw {
  from { background-size: 0% 0.4em; }
  to { background-size: 100% 0.4em; }
}

/* ---------- Course catalog (replaces the card grid on the homepage) ---------- */

.catalog { margin-top: 1.5rem; }

.catalog-entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.75rem;
  padding: 1.7rem 1rem;
  border-top: 1px solid var(--line);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.catalog-entry:last-child { border-bottom: 1px solid var(--line); }

.catalog-entry:hover {
  background: var(--card);
  box-shadow: inset 4px 0 0 var(--accent);
}

.catalog-entry .code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}

.catalog-entry h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.catalog-entry p { margin: 0; color: var(--muted); max-width: 62ch; }

/* ---------- Vitals: measurement-instrument treatment ---------- */

.vitals {
  border-top: 6px solid transparent;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 24px),
    linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 100% 6px, 100% 100%;
  background-position: top left, top left;
  padding-top: 2.4rem;
}

.vital .num { font-size: 2.1rem; }
.vital .num em { color: #e8a33d; }

.vital .label {
  font-size: 0.8rem;
  color: #c3cddd;
  text-transform: none;
  letter-spacing: 0.03em;
}

/* ---------- Testimonials: oversized quote glyph, larger type ---------- */

.testimonial { font-size: 1.05rem; position: relative; padding-top: 2.6rem; }

.testimonial::before {
  content: "\201C";
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 4.5rem;
  line-height: 0;
  color: var(--accent);
  position: absolute;
  top: 2.4rem;
  left: 1.6rem;
  opacity: 0.85;
}

.testimonial p:first-of-type { text-indent: 2.6rem; }

/* ---------- Publications rows: clearer type ---------- */

.pub .kind { font-size: 0.78rem; }
.pub .src { font-size: 0.95rem; }
.talk-list .yr { font-size: 0.85rem; }
.talk-list li { padding: 1rem 0; }

/* ---------- Footer ---------- */

.site-footer .wrap { font-size: 0.8rem; }

/* ---------- Portrait caption accent ---------- */

.portrait figcaption::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--accent2);
  vertical-align: middle;
  margin-right: 0.6rem;
}

/* ---------- Motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  .mark { animation: none; background-size: 100% 0.4em; }
  .catalog-entry { transition: none; }
}

@media (max-width: 680px) {
  .catalog-entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .testimonial p:first-of-type { text-indent: 0; }
  .testimonial::before { position: static; display: block; margin-bottom: 0.5rem; }
  .testimonial { padding-top: 1.75rem; }
}

/* ==========================================================================
   v4: logo marquee, toolbox, project imagery, refined catalog
   ========================================================================== */

/* ---------- Worked-with marquee (grayscale, rotating) ---------- */

.marquee-section { padding: 3.5rem 0; }

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-tile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-tile:hover { filter: grayscale(0); opacity: 1; }

.logo-tile img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: block;
}

.logo-tile .org {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track > .dup { display: none; }
}

/* ---------- Catalog refinement: category tags instead of course codes ---------- */

.catalog-entry .code {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.45rem;
}

.catalog-entry:hover .code { color: var(--accent); }

/* ---------- Toolbox ---------- */

.toolbox { margin-top: 1.5rem; display: grid; gap: 1.75rem; }

.tool-group .group-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.chip {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Project imagery ---------- */

.project-body {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2.5rem;
  align-items: start;
}

.project-media { margin: 0; position: sticky; top: 90px; }

.project-media img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(22, 36, 61, 0.12);
}

.project-media figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.8rem;
}

@media (max-width: 860px) {
  .project-body { grid-template-columns: 1fr; }
  .project-media { position: static; max-width: 460px; }
}

/* Publications hero image */
.hero-media { margin: 2rem 0 0; max-width: 620px; }
.hero-media img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(22, 36, 61, 0.14);
}


/* Counter stability: reserve space and keep digits from jiggling */
.vital .num { font-variant-numeric: tabular-nums; }
.vital .num > span[data-count] { display: inline-block; min-width: 4.2ch; }


/* Wordmark logo tiles (e.g. SHRM official SVG) */
.logo-tile img.wordmark {
  height: 26px;
  width: auto;
  border-radius: 0;
}

.logo-tile .org.backup { display: none; }
