/* ==========================================================================
   Roman A. Vitanza — Professional Portfolio
   style.css
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   1.  CSS Variables (Design Tokens)
   2.  Base / Reset
   3.  Typography & Utilities
   4.  Layout (container, sections)
   5.  Navbar (sticky + mobile hamburger)
   6.  Buttons
   7.  Hero
   8.  About
   9.  Experience (timeline)
   10. Featured Work (cards)
   11. Skills
   12. Awards
   13. "Show all" expanders
   14. Recruiter / Hiring Manager
   15. Contact
   16. Footer
   17. Reveal animations
   18. Responsive breakpoints
   19. Print (resume-friendly)
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables (Design Tokens)
   Tweak these to re-skin the entire site.
   ========================================================================== */
:root {
  /* Color palette — dark navy, slate, white, subtle gold */
  --navy-900: #0a1526;   /* deepest background */
  --navy-800: #0d1b2e;
  --navy-700: #12233b;   /* card / panel background */
  --navy-600: #1b2a45;
  --slate-500: #415a77;  /* muted accents, borders */
  --slate-400: #607089;
  --slate-300: #9aa8bd;  /* secondary text on dark */
  --white: #f6f8fc;
  --white-dim: #e6ebf3;
  --gold: #c9a24b;       /* primary gold accent */
  --gold-bright: #e0bf72;
  --gold-soft: rgba(201, 162, 75, 0.12);

  /* Semantic tokens */
  --bg: var(--navy-900);
  --bg-alt: var(--navy-800);
  --surface: var(--navy-700);
  --surface-2: var(--navy-600);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(201, 162, 75, 0.35);
  --text: var(--white);
  --text-muted: var(--slate-300);
  --accent: var(--gold);

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;

  /* Spacing & sizing */
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --gap: 1.5rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  /* Effects */
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, 0.6);
  --transition: 0.25s ease;
  --nav-h: 68px;
}

/* ==========================================================================
   2. Base / Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-900);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* Scroll progress indicator (top of viewport) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 150;
  transition: width 0.08s linear;
  will-change: width;
}

/* ==========================================================================
   3. Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Display serif for the two top heading levels — an editorial, executive feel
   that suits a communications leader. Cards & UI stay in the sans. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

::selection {
  background: var(--gold);
  color: var(--navy-900);
}

p { color: var(--white-dim); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.text-muted { color: var(--text-muted); }
.center { text-align: center; }

.section-title {
  margin-bottom: 0.5rem;
}
.section-intro {
  max-width: 60ch;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.section-head.center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* Gold divider accent */
.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}
.center .divider { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

section {
  padding-block: var(--section-y);
  position: relative;
}

.bg-alt { background-color: var(--bg-alt); }

/* ==========================================================================
   5. Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 21, 38, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 21, 38, 0.94);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--white); }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--gold), #a9812f);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand-name .thin { color: var(--slate-300); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  position: relative;
  color: var(--white-dim);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
/* Animated active-link underline (excludes the CTA button) */
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}
.nav-links a.active:not(.nav-cta)::after { transform: scaleX(1); }
.nav-links a.nav-cta {
  color: var(--navy-900);
  background: var(--gold);
  font-weight: 600;
}
.nav-links a.nav-cta:hover {
  background: var(--gold-bright);
  color: var(--navy-900);
}

/* "More" dropdown — keeps the top bar to a handful of primary items */
.nav-more { position: relative; }
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white-dim);
  background: none;
  border: 0;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.nav-more-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}
.nav-more-btn:hover,
.nav-more.open .nav-more-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.nav-more.open .nav-more-btn svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 0.5rem;
  display: grid;
  gap: 2px;
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition),
    visibility var(--transition);
}
.nav-more.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-dropdown a { display: block; }
.nav-dropdown a::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition),
    border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-bright);
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(201, 162, 75, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--slate-500);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
  background: var(--gold-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 9vw, 6rem);
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(201, 162, 75, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(65, 90, 119, 0.28), transparent 55%),
    var(--bg);
}
/* Subtle horizon/aviation line motif */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 400px at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 400px at 70% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-text { max-width: 42rem; }

/* Headshot portrait */
.hero-portrait {
  position: relative;
  justify-self: center;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--gold-soft), transparent 70%);
  border: 1px solid var(--border-strong);
  z-index: 0;
}
.hero-portrait img {
  position: relative;
  z-index: 1;
  width: min(340px, 78vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

/* Utility links (secondary to primary CTAs) */
.hero-utils {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.3rem;
}
.util-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.util-link svg { width: 18px; height: 18px; }
.util-link:hover,
.util-link:focus-visible { color: var(--gold-bright); }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white-dim);
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(224, 191, 114, 0.25);
}
.hero h1 { margin-bottom: 0.6rem; }
.hero h1 .accent { color: var(--gold-bright); }
.hero-headline {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.1rem;
  max-width: 46ch;
}
.hero-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero-meta .stat .num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-bright);
  display: block;
  line-height: 1.1;
}
.hero-meta .stat .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   8. About  /  Executive Dashboard
   ========================================================================== */
/* Executive Dashboard — six metric cards */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.metric-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.8;
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.metric-icon {
  font-size: 1.9rem;
  line-height: 1;
}
.metric-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.metric-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.metric-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-body p { margin-bottom: 1.1rem; }
.about-body p:last-child { margin-bottom: 0; }

/* Single-column About (no sidebar card) */
.about-single { max-width: 72ch; }

/* Opening line of the bio — larger, brighter, reads like a positioning statement */
.about-lede {
  font-size: 1.17rem;
  line-height: 1.7;
  color: var(--white);
}

/* Selected Impact — quantified highlights */
.impact { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.impact-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
}
.impact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
}
.impact-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.impact-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--gold-bright);
}
.about-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--white-dim);
}
.about-list li:last-child { border-bottom: 0; }
.about-list .k {
  color: var(--text-muted);
  min-width: 6.5rem;
  font-weight: 500;
}

/* ==========================================================================
   9. Experience (timeline)
   ========================================================================== */
.timeline {
  position: relative;
  margin-top: 1rem;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--slate-500), transparent);
}
.timeline-item {
  position: relative;
  padding: 0 0 2rem 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.12);
}
.timeline-item .role-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  align-items: baseline;
}
.timeline-item h3 { color: var(--white); }
.timeline-item .org {
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.98rem;
}
.timeline-item .period {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.timeline-item .role-desc {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.timeline-item .role-points {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
}
.timeline-item .role-points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.94rem;
  color: var(--white-dim);
}
.timeline-item .role-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Experience toggle tabs (in the section heading) */
.exp-title {
  display: block;
  line-height: 1.15;
}
.exp-tab {
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: var(--slate-400);
  background: none;
  border: 0;
  padding: 0 0 2px;
  margin: 0;
  cursor: pointer;
  position: relative;
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 75, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color var(--transition);
}
.exp-tab:hover { color: var(--white-dim); }
.exp-tab.is-active {
  color: var(--white);
  text-decoration: none;
}
.exp-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.exp-conj,
.exp-word {
  color: var(--slate-400);
  font-weight: inherit;
}
.exp-conj { margin: 0 0.4em; }
.exp-word { margin-left: 0.4em; }

/* Experience panels (toggled tracks) */
.exp-panel[hidden] { display: none; }
.exp-panel.is-active { animation: expFade 0.35s ease; }
@keyframes expFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   10. Featured Work (cards)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.work-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}
/* Gold accent bar across the top of each card */
.work-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.75;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.work-card:hover .card-icon {
  transform: scale(1.05);
  border-color: var(--gold);
}
.work-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(201, 162, 75, 0.28), rgba(201, 162, 75, 0.07));
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform var(--transition), border-color var(--transition);
}
.work-card .card-icon svg { width: 28px; height: 28px; }
.work-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.work-card p { font-size: 0.94rem; color: var(--text-muted); flex-grow: 1; }
.work-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.work-card .card-link {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Inline thumbnail previews inside a work card (e.g. campaign posters).
   Tall banner art is cropped to a preview strip; click opens full-size. */
.card-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.card-thumbs a {
  flex: 1 1 0;
  display: block;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}
.card-thumbs a:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.card-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ==========================================================================
   11. Skills
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--gap);
}
.skill-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.skill-cat h3 {
  font-size: 1rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.skill-cat h3 svg { width: 20px; height: 20px; flex-shrink: 0; }
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tags li {
  font-size: 0.85rem;
  color: var(--white-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   12. Awards
   ========================================================================== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.award-card {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
  transition: transform var(--transition), border-color var(--transition);
}
.award-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  border-left-color: var(--gold);
}
.award-card .medal {
  color: var(--gold-bright);
  flex-shrink: 0;
}
.award-card .medal svg { width: 26px; height: 26px; }
.award-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.award-card p { font-size: 0.88rem; color: var(--text-muted); }
.award-card .award-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-bright);
}

/* ==========================================================================
   Organizations (affiliations logo grid)
   ========================================================================== */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.org-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.org-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.org-card img {
  width: 100%;
  max-width: 120px;
  height: 96px;
  object-fit: contain;
}
.org-card .org-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ==========================================================================
   Licenses & Certifications
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.cert-card {
  display: flex;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.3rem;
  transition: transform var(--transition), border-color var(--transition);
}
.cert-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  border-left-color: var(--gold);
}
.cert-card .cert-icon {
  color: var(--gold-bright);
  flex-shrink: 0;
}
.cert-card .cert-icon svg { width: 24px; height: 24px; }
.cert-card h3 { font-size: 0.95rem; margin-bottom: 0.2rem; line-height: 1.3; }
.cert-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
/* Optional source link inside a publication card (absent on certification cards) */
.cert-card .cert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-bright);
}
.cert-card .cert-link:hover { text-decoration: underline; }

/* ==========================================================================
   13. "Show all" expanders (Awards & Certifications)
   Extra cards carry class="is-extra" + the hidden attribute; the button
   (data-expander="#section-id") toggles them — see initExpanders in script.js.
   ========================================================================== */
.is-extra[hidden] { display: none; }
.is-extra:not([hidden]) { animation: expFade 0.3s ease; }
.expand-cta {
  margin-top: 1.75rem;
  text-align: center;
}

/* ==========================================================================
   14. Recruiter / Hiring Manager
   ========================================================================== */
.recruiter {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(201, 162, 75, 0.10), transparent 60%),
    var(--bg-alt);
}
.recruiter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.why-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.why-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.why-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.why-list .check svg { width: 14px; height: 14px; }
.why-list strong { color: var(--white); display: block; }
.why-list span { color: var(--text-muted); font-size: 0.92rem; }

.fit-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.fit-panel h3 { font-size: 1.1rem; margin-bottom: 1.1rem; }
.fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.fit-tags li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white-dim);
  background: rgba(201, 162, 75, 0.08);
  border: 1px solid var(--border-strong);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

/* ==========================================================================
   15. Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-note {
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--white-dim);
  margin: 1.25rem 0 1.75rem;
}
.contact-direct { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.contact-direct a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-direct a:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}
.contact-direct svg { width: 20px; height: 20px; color: var(--gold-bright); flex-shrink: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-dim);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  background: var(--navy-900);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white-dim);
}
.footer-social a:hover { color: var(--gold-bright); border-color: var(--border-strong); }
.footer-social svg { width: 20px; height: 20px; }
.to-top {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   16b. CAP Ribbons (button + modal + hover tooltips)
   ========================================================================== */
.ribbons-cta {
  margin-top: 2.75rem;
  text-align: center;
}

.ribbon-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.ribbon-modal[hidden] { display: none; }

.ribbon-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: expFade 0.2s ease;
}
.ribbon-dialog {
  position: relative;
  z-index: 1;
  width: min(700px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.6rem;
  animation: expFade 0.25s ease;
}
.ribbon-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ribbon-dialog-head h3 { font-size: 1.15rem; }
.ribbon-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.ribbon-close:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.ribbon-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.15rem 0 1rem;
}

/* Rack image + overlay grid of hover cells */
.ribbon-rack {
  position: relative;
  width: 100%;
  line-height: 0;
}
.ribbon-rack img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.ribbon-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}
.ribbon-cell {
  position: relative;
  cursor: pointer;
}
.ribbon-cell:hover,
.ribbon-cell:focus-visible {
  outline: 2px solid #ff3b3b;
  outline-offset: -2px;
  z-index: 3;
}
/* Permanently highlighted ribbons (e.g. Commander's Commendations) */
.ribbon-cell.is-highlighted {
  outline: 3px solid #ff3b3b;
  outline-offset: -1px;
  box-shadow: 0 0 10px 1px rgba(255, 59, 59, 0.55);
  z-index: 2;
}
.ribbon-cell.is-highlighted:hover,
.ribbon-cell.is-highlighted:focus-visible { z-index: 4; }
.rib-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  min-width: max-content;
  max-width: 220px;
  text-align: center;
  background: #10203a;
  border: 2px solid #ff3b3b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 6;
}
/* Top-row tooltips flip below the cell so they don't clip out of the dialog */
.ribbon-overlay > .ribbon-cell:nth-child(-n + 3) .rib-tip {
  bottom: auto;
  top: calc(100% + 7px);
}
.ribbon-cell:hover .rib-tip,
.ribbon-cell:focus-visible .rib-tip { opacity: 1; }

/* Descriptor panel (shown on ribbon click) */
.ribbon-desc {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-left: 3px solid #ff3b3b;
  border-radius: var(--radius-sm);
  animation: expFade 0.2s ease;
}
.ribbon-desc[hidden] { display: none; }
.ribbon-desc-name {
  font-size: 1rem;
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
}
.ribbon-desc-text {
  font-size: 0.92rem;
  color: var(--white-dim);
  line-height: 1.55;
}
.ribbon-desc-devices {
  font-size: 0.85rem;
  color: var(--gold-bright);
  margin-top: 0.55rem;
}
.ribbon-desc-devices[hidden] { display: none; }
.ribbon-desc-src {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
}
.ribbon-desc-src[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ribbon-backdrop, .ribbon-dialog, .ribbon-desc { animation: none !important; }
}

/* ==========================================================================
   17. Reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
/* staggered children */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .exp-panel.is-active { animation: none !important; }
}

/* ==========================================================================
   18. Responsive breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid,
  .recruiter-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .recruiter-grid .fit-panel { order: -1; }

  /* Stack hero, portrait on top */
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-text { max-width: none; }
  .hero-portrait { order: -1; }
  .hero-portrait img { width: min(230px, 60vw); }
  .hero-portrait::before { inset: 10px -10px -10px 10px; }
}

/* Mobile navigation kicks in at 900px — with the brand plus six items the bar
   needs ~930px, so anything narrower gets the hamburger menu. */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: rgba(10, 21, 38, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 0.7rem; font-size: 1rem; }
  .nav-links a.nav-cta { text-align: center; margin-top: 0.5rem; }
  .nav-links a:not(.nav-cta)::after { display: none; }

  /* In the mobile menu the "More" group flattens into plain links */
  .nav-more-btn { display: none; }
  .nav-dropdown {
    position: static;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  /* Reduce reveal stagger on small screens — feels snappier */
  .reveal[data-delay="1"],
  .reveal[data-delay="2"],
  .reveal[data-delay="3"] { transition-delay: 0s; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 1rem 1.5rem; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   19. Print (resume-friendly)
   Hides nav/hero chrome & interactive elements; renders a clean document.
   ========================================================================== */
@media print {
  :root { --bg: #fff; --text: #111; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .navbar, .nav-toggle, .hero-status, .hero-meta, .contact-form,
  .footer-social, .to-top, .btn-row, .skip-link, #contact .contact-note,
  .work-card .card-icon, .hero-utils, .hero-portrait, .scroll-progress,
  .no-print {
    display: none !important;
  }
  a { color: #111; text-decoration: underline; }
  section { padding-block: 1rem; break-inside: avoid; }
  h1, h2, h3 { color: #111; }
  p, li, span, .text-muted, .hero-summary, .section-intro { color: #222 !important; }
  .hero { background: none; padding-top: 1rem; }
  .about-grid, .recruiter-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .work-card, .skill-cat, .award-card, .cert-card, .about-card, .fit-panel,
  .metric-card, .timeline-item {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* Print every award/credential, not just the featured ones */
  .is-extra[hidden] { display: flex !important; }
  .expand-cta { display: none !important; }
  /* Print both experience tracks, not just the active tab */
  .exp-panel[hidden] { display: block !important; }
  .exp-tab { text-decoration: none !important; color: #111 !important; }
  .exp-tab.is-active::after { display: none !important; }
  .divider { background: #999; }
  @page { margin: 1.4cm; }
}
