/* Russell Wagner — v5. UCF black & gold on white. Plan: ../Website Design Plan.md */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #000000;
  --gold: #ffc904;
  --gold-ink: #7a5d00;
  --graphite: #5a5a5a;
  --rule: #e4e4e4;
  --display: "Anton", Impact, sans-serif;
  --body: "Archivo", system-ui, -apple-system, sans-serif;
  --script: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.side.demand :focus-visible, .cta-band :focus-visible { outline-color: var(--paper); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
nav .brand .mark { width: 36px; height: 36px; display: block; }
nav .brand .name { font: 400 20px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
nav ul a { color: var(--graphite); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
nav ul a:hover { color: var(--ink); }
nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
nav .cta { background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
nav .cta:hover, nav .cta[aria-current="page"] { background: var(--gold); color: var(--ink); }
@media (max-width: 720px) {
  nav .wrap { flex-wrap: wrap; gap: 4px 16px; padding-top: 12px; padding-bottom: 6px; }
  nav .brand .name { font-size: 18px; }
  nav ul { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 4px; }
  nav .cta { padding: 8px 14px; font-size: 14px; }
}

/* ---------- Type ---------- */
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(48px, 9vw, 104px); line-height: .92; margin: 0 0 20px; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: .95; margin: 0 0 20px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
p { max-width: 68ch; }
.lede { font-size: 20px; line-height: 1.5; color: var(--graphite); margin: 0 0 28px; }
.muted { color: var(--graphite); }
.center { text-align: center; }
.tagline, .case-org { display: block; color: var(--gold-ink); font-weight: 600; font-size: 15px; margin: 0 0 8px; }

header.page { padding: 64px 0 36px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
header.page.with-photo { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: end; padding-bottom: 0; }
header.page.with-photo > div:first-child { padding-bottom: 36px; }
header.page.with-photo { padding-bottom: 22px; }
.portrait { background: #6c665c; border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 773 / 800; box-shadow: 14px 14px 0 0 var(--gold); margin: 0 14px 14px 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
@media (max-width: 760px) { header.page.with-photo { grid-template-columns: 1fr; gap: 0; padding-top: 28px; } header.page.with-photo .portrait { order: -1; max-width: 180px; margin-bottom: 20px; } }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 2px solid var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--paper); border-color: var(--paper); }
.more { font-weight: 600; text-decoration: none; font-size: 16px; border-bottom: 3px solid var(--gold); padding-bottom: 2px; }
.more:hover { background: var(--gold); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero .hello { font: italic 400 clamp(56px, 8vw, 104px)/1 var(--script); margin: 0 0 -6px; }
.hero h1 { font-size: clamp(76px, 13vw, 176px); line-height: .86; margin: 0 0 28px; }
.hero .pitch { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45; max-width: 34ch; margin: 0 0 14px; }
.hero .now { color: var(--graphite); font-size: 15px; margin: 0 0 28px; max-width: 46ch; }
.photo { align-self: stretch; display: flex; align-items: flex-end; }
.headshot { position: relative; width: calc(100% - 20px); aspect-ratio: 4 / 5; background: #6c665c; border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 20px 20px 0 0 var(--gold); margin-bottom: 20px; }
.headshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.headshot .initials { font: italic 400 clamp(110px, 14vw, 190px)/1 var(--script); color: var(--ink); opacity: .9; }
@media (max-width: 860px) {
  .hero { padding: 20px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .photo { order: -1; max-width: 160px; margin: 0 0 10px; }
  .headshot { width: calc(100% - 10px); box-shadow: 10px 10px 0 0 var(--gold); margin-bottom: 10px; }
  .headshot .initials { font-size: 72px; }
  .hero .hello { font-size: 52px; }
  .hero h1 { font-size: clamp(68px, 21vw, 120px); margin-bottom: 20px; }
}

/* ---------- Supply / Demand split ---------- */
.split-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.split-intro h2 { margin: 0; }
.split-intro p { margin: 0; color: var(--graphite); max-width: 40ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.side { padding: 40px; display: flex; flex-direction: column; }
.side.demand { background: var(--ink); color: var(--paper); }
.side .word { font: 400 clamp(56px, 8vw, 96px)/.9 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.side.demand .word { color: var(--gold); }
.side .what { margin: 0 0 28px; color: var(--graphite); font-size: 16px; }
.side.demand .what { color: #c8c8c8; }
.figures { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.figures li { display: grid; grid-template-columns: 6.5ch 1fr; align-items: baseline; gap: 14px; border-top: 1px solid var(--rule); padding-top: 14px; }
.side.demand .figures li { border-top-color: #333; }
.figures b { font: 400 34px/1 var(--display); }
.figures span { font-size: 15px; color: var(--graphite); }
.side.demand .figures span { color: #c8c8c8; }
.side .more { margin-top: auto; align-self: flex-start; }
.side.demand .more { color: var(--paper); }
.side.demand .more:hover { color: var(--ink); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .side { padding: 28px 22px; } }

/* ---------- Shipping labels ---------- */
.labels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .labels { grid-template-columns: 1fr; gap: 18px; } }
.label { display: flex; flex-direction: column; border: 2px solid var(--ink); background: var(--paper); text-decoration: none; color: var(--ink); }
.label .top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.label .top .code { font: 400 22px/1 var(--display); letter-spacing: .04em; color: var(--gold); }
.label .top .kind { font-size: 13px; font-weight: 600; }
.label .row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--ink); }
.label .row > div { padding: 10px 14px; }
.label .row > div + div { border-left: 2px solid var(--ink); }
.label small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 2px; }
.label .row span { font-size: 15px; font-weight: 600; line-height: 1.3; }
.label .result { padding: 18px 14px 6px; }
.label .result b { display: block; font: 400 clamp(52px, 6vw, 72px)/1 var(--display); }
.label .result span { display: block; font-size: 15px; font-weight: 600; color: var(--gold-ink); margin-top: 4px; }
.label h3 { padding: 10px 14px 18px; margin: 0; font-size: 18px; }
.label .barcode { margin-top: auto; height: 44px; border-top: 2px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 13px, transparent 13px 15px, var(--ink) 15px 16px, transparent 16px 21px) 14px 8px / calc(100% - 28px) 28px no-repeat; }
a.label:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
a.label:hover .barcode { background-color: var(--gold); }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

/* ---------- Experience & skills table ---------- */
.xp-table { border-top: 2px solid var(--ink); }
.xp-row { display: grid; grid-template-columns: 170px 1.2fr 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.xp-row .yrs { color: var(--graphite); font-size: 15px; font-variant-numeric: tabular-nums; }
.xp-row h3 { margin: 0; }
.xp-row .org { color: var(--graphite); font-size: 15px; }
.xp-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.xp-row li { font-size: 14px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; }
@media (max-width: 760px) { .xp-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Generic grid / cards (inner pages) ---------- */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card { border: 2px solid var(--ink); padding: 22px; background: var(--paper); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--graphite); font-size: 16px; }
.stat b { display: block; font: 400 40px/1.05 var(--display); }
.stat span { color: var(--graphite); font-size: 15px; }
.callout { border-left: 6px solid var(--gold); padding: 6px 0 6px 20px; font-size: 20px; font-weight: 600; margin: 28px 0 0; }
.quote { font: italic 400 clamp(26px, 3.4vw, 36px)/1.2 var(--script); margin: 0; }

/* ---------- Experience timeline ---------- */
.job { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.job:first-child { padding-top: 8px; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; gap: 4px; } }
.job .when { color: var(--graphite); font-size: 15px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.job h3 { margin: 0; font-size: 21px; }
.job .org { color: var(--gold-ink); font-weight: 600; margin: 0 0 10px; }
.role { margin: 18px 0 4px; font-weight: 700; font-size: 16px; }
.role small { color: var(--graphite); font-weight: 400; font-size: 15px; margin-left: 6px; }
ul.points { margin: 4px 0 0; padding-left: 20px; }
ul.points li { margin-bottom: 4px; }
ul.points li::marker { color: var(--gold-ink); }

/* ---------- Case studies (projects page) ---------- */
.case { padding: 64px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.case h2 { margin-bottom: 20px; }
.case .meta { display: flex; flex-wrap: wrap; border: 2px solid var(--ink); margin: 0 0 32px; max-width: none; }
.case .meta span { flex: 1 1 180px; padding: 10px 14px; font-size: 15px; font-weight: 600; border-right: 2px solid var(--ink); }
.case .meta span:last-child { border-right: 0; }
.case .meta b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
@media (max-width: 640px) { .case .meta span { flex-basis: 100%; border-right: 0; border-bottom: 2px solid var(--ink); } .case .meta span:last-child { border-bottom: 0; } }
.case h4 { font-size: 17px; font-weight: 700; margin: 30px 0 8px; }
.case p { margin: 0 0 10px; }
.results { margin-top: 24px; gap: 0; border: 2px solid var(--ink); }
.results .card { border: 0; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); margin-top: -2px; }
.results.three .card:nth-child(3n) { border-right: 0; }
.results.two .card:nth-child(2n) { border-right: 0; }
@media (max-width: 760px) { .results .card { border-right: 0 !important; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--rule); border-radius: 999px; padding: 7px 16px; font-size: 15px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; }
.toc a:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- Connect ---------- */
.contact-list { display: grid; border: 2px solid var(--ink); margin-bottom: 56px; }
.contact-list .card { border: 0; border-top: 2px solid var(--ink); margin-top: -2px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-row .label-name { font-size: 14px; color: var(--gold-ink); font-weight: 600; }
.contact-row .value { font-weight: 600; font-size: 18px; word-break: break-all; }

/* ---------- Closing band ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding: 72px 32px; text-align: center; margin: 24px 0 64px; border-top: 8px solid var(--gold); }
.cta-band h2 { color: var(--paper); max-width: 18ch; margin: 0 auto 28px; }
.cta-band .buttons { justify-content: center; }
.cta-band .btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.cta-band .btn.ghost:hover { background: var(--paper); color: var(--ink); }

footer { padding: 28px 0 48px; color: var(--graphite); font-size: 14px; border-top: 1px solid var(--rule); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--graphite); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .footer-links { display: flex; gap: 20px; }
