/*
Theme Name:  Matt Penna
Theme URI:   https://mattpenna.com
Author:      Matt Penna
Author URI:  https://mattpenna.com
Description: Single-page personal portfolio for Matt Penna, enterprise UX designer and strategist.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mattpenna
Tags:        portfolio, one-page, dark, minimal
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TOKENS ── */
:root {
  --maroon: #4F0E0E;
  --black:  #000000;
  --navy:   #293670;
  --sage:   #586E5F;
  --snow:   #F0F4F5;
  --white:  #FFFFFF;
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ── BASE ── */
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--black);
  background: var(--black);
}

/* ── SECTION LABEL ── */
.label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 44px;
}

/* ═══════════════════════
   NAV
═══════════════════════ */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--snow);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}
/* Push nav below WordPress admin bar when logged in */
body.admin-bar #site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #site-nav { top: 46px; }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stamp {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 7px 11px;
  line-height: 1;
  display: inline-block;
}
.nav-wordmark {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

/* ═══════════════════════
   HERO
═══════════════════════ */
#hero {
  background: var(--maroon);
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  padding: 88px 52px 104px;
}
.hero-inner { max-width: 920px; }

.hero-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(240,244,245,0.45);
  display: block;
  margin-bottom: 36px;
  opacity: 0;
  animation: rise 0.8s ease 0.1s forwards;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 92px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--snow);
  margin-bottom: 36px;
}
.h1-l1 { display: block; opacity: 0; animation: rise 0.9s ease 0.28s forwards; }
.h1-l2 { display: block; opacity: 0; animation: rise 0.9s ease 0.46s forwards; }
.h1-l3 {
  display: block;
  font-size: 0.7em;
  color: rgba(240,244,245,0.22);
  margin-top: 14px;
  opacity: 0;
  animation: rise 0.9s ease 0.66s forwards;
}
.hero-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(240,244,245,0.58);
  max-width: 520px;
  margin-bottom: 50px;
  opacity: 0;
  animation: rise 0.8s ease 0.86s forwards;
}
.hero-actions {
  display: flex;
  gap: 36px;
  align-items: center;
  opacity: 0;
  animation: rise 0.8s ease 1.06s forwards;
}
.btn-ghost {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--snow);
  border-bottom: 1px solid rgba(240,244,245,0.4);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--snow); }
.btn-quiet {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(88,110,95,0.85);
  transition: opacity 0.2s;
}
.btn-quiet:hover { opacity: 0.7; }

/* ═══════════════════════
   CLIENTS TICKER
═══════════════════════ */
#clients {
  background: var(--snow);
  padding: 44px 0 40px;
}
.ticker-top { padding: 0 52px; margin-bottom: 24px; }
.ticker-rail { overflow: hidden; position: relative; }
.ticker-belt {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: crawl 32s linear infinite;
}
.t-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  padding: 0 28px;
}
.t-sep { font-size: 5px; color: var(--sage); flex-shrink: 0; }
.ticker-rail::before,
.ticker-rail::after {
  content: '';
  position: absolute; top: 0; height: 100%;
  width: 100px; z-index: 2;
}
.ticker-rail::before { left: 0;  background: linear-gradient(to right, var(--snow), transparent); }
.ticker-rail::after  { right: 0; background: linear-gradient(to left,  var(--snow), transparent); }

/* ═══════════════════════
   SERVICES
═══════════════════════ */
#services {
  background: var(--black);
  padding: 96px 52px;
}
.svc-wrap { max-width: 1100px; margin: 0 auto; }
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.svc {
  background: var(--black);
  padding: 46px 38px;
  transition: background 0.22s;
}
.svc:hover { background: #0c0c0c; }
.svc-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 16px;
}
.svc h3 {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  color: var(--snow);
  margin-bottom: 14px;
  line-height: 1.25;
}
.svc p {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(240,244,245,0.46);
}

/* ═══════════════════════
   WORK
═══════════════════════ */
#work {
  background: var(--snow);
  padding: 96px 52px;
}
.work-wrap { max-width: 1100px; margin: 0 auto; }
.work-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.work-item:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.wi-meta { padding-top: 2px; }
.wi-client {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  display: block; margin-bottom: 5px; color: var(--black);
}
.wi-year {
  font-size: 10px; font-weight: 300; color: #aaa;
  letter-spacing: 0.5px; display: block; margin-bottom: 22px;
}
.wi-tag {
  font-size: 8px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--sage); display: block; margin-bottom: 5px;
}
.wi-title {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 400; color: var(--black);
  line-height: 1.2; display: block;
  margin-bottom: 18px; transition: color 0.2s;
}
.wi-title:hover { color: var(--navy); }
.wi-desc {
  font-size: 14px; line-height: 1.88; color: #444;
  max-width: 600px; margin-bottom: 16px;
}
.wi-result {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.8px; color: var(--navy);
}

/* ═══════════════════════
   ABOUT
═══════════════════════ */
/* ── HEADSHOT ── */
.about-photo {
  display: block;
  width: 220px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .about-photo { width: 180px; }
}
#about { background: var(--navy); padding: 96px 52px; }
#about .label { color: rgba(240,244,245,0.4); }
.about-wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 88px; align-items: start;
}
.about-statement {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400; line-height: 1.3;
  color: var(--snow); margin-bottom: 48px;
}
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 44px;
  border-top: 1px solid rgba(240,244,245,0.1);
}
.stat-n {
  display: block; font-family: var(--serif);
  font-size: 44px; color: var(--snow);
  line-height: 1; margin-bottom: 9px;
}
.stat-l {
  font-size: 9.5px; font-weight: 300;
  color: rgba(240,244,245,0.38); line-height: 1.55;
}
.about-body p {
  font-size: 14px; line-height: 1.92;
  color: rgba(240,244,245,0.66); margin-bottom: 22px;
}
.about-body p:last-child { margin-bottom: 0; }

/* ═══════════════════════
   CONTACT
═══════════════════════ */
#contact { background: var(--black); padding: 96px 52px; }
.contact-wrap { max-width: 1100px; margin: 0 auto; }
.contact-h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 400; color: var(--snow);
  line-height: 1.05; max-width: 640px; margin-bottom: 14px;
}
.contact-note {
  font-size: 11px; font-weight: 300;
  letter-spacing: 1px;
  color: rgba(240,244,245,0.3); margin-bottom: 56px;
}
.contact-items { display: flex; gap: 56px; flex-wrap: wrap; }
.c-item { display: flex; flex-direction: column; gap: 7px; }
.c-label {
  font-size: 8px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--sage);
}
.c-value {
  font-size: 15px; font-weight: 300;
  color: var(--snow); letter-spacing: 0.3px; transition: opacity 0.2s;
}
.c-item:hover .c-value { opacity: 0.5; }

/* ═══════════════════════
   FOOTER
═══════════════════════ */
footer {
  background: var(--black); padding: 22px 52px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-stamp {
  background: var(--navy); color: var(--white);
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 2px;
  padding: 5px 8px; line-height: 1; display: inline-block;
}
footer p {
  font-size: 9.5px; font-weight: 300;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.18);
}

/* ═══════════════════════
   ANIMATIONS
═══════════════════════ */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes crawl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.78s ease, transform 0.78s ease;
}
.reveal.vis { opacity: 1; transform: none; }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-eyebrow, .hero-sub, .hero-actions,
  .h1-l1, .h1-l2, .h1-l3 { opacity: 1; animation: none; }
  .ticker-belt { animation-play-state: paused; }
}

/* ═══════════════════════
   RESPONSIVE
═══════════════════════ */
@media (max-width: 900px) {
  #site-nav { padding: 0 24px; }
  .nav-wordmark { display: none; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 9px; letter-spacing: 1.5px; }

  #hero { padding: 60px 24px 80px; }
  .ticker-top { padding: 0 24px; }

  #services { padding: 72px 24px; }
  .svc-grid { grid-template-columns: 1fr; }

  #work { padding: 72px 24px; }
  .work-item {
    grid-template-columns: 1fr; gap: 18px;
  }
  .wi-meta {
    display: flex; align-items: baseline;
    gap: 16px; flex-wrap: wrap;
  }
  .wi-year { margin-bottom: 0; }

  #about { padding: 72px 24px; }
  .about-wrap { grid-template-columns: 1fr; gap: 44px; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  #contact { padding: 72px 24px; }
  .contact-items { flex-direction: column; gap: 28px; }

  footer { padding: 18px 24px; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; gap: 28px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  .contact-h2 { font-size: 36px; }
}
