:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --primary: #1f3a5f;
  --primary-2: #2c4d78;
  --primary-deep: #132742;
  --on-primary: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #d7dde6;
  --shadow: 0 14px 32px rgba(16, 24, 40, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Neue Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(31, 58, 95, 0.1), transparent 42%),
    radial-gradient(circle at 85% 5%, rgba(95, 107, 122, 0.08), transparent 32%),
    linear-gradient(160deg, #f8f9fb 0%, #f2f5f8 45%, #edf1f5 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 4vw;
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  animation: fade-in 800ms ease forwards;
}

.brand {
  color: var(--on-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-nav nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.top-nav nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.top-nav nav a:hover {
  color: var(--on-primary);
}

main,
.subpage {
  width: min(1320px, 96vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 2rem;
  animation: fade-in-up 900ms ease forwards;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 0.8rem;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-bottom: 0.6rem;
}

.hero-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-intro p {
  margin: 0 0 0.9rem;
}

.hero-intro p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  border-radius: 999px;
  padding: 0.64rem 1.1rem;
  font-weight: 700;
  font-size: 0.93rem;
  transition: transform 160ms ease, box-shadow 220ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: var(--on-primary);
  box-shadow: 0 8px 22px rgba(31, 58, 95, 0.22);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-deep);
}

.hero-photo-wrap {
  justify-self: center;
  width: min(360px, 90%);
  border-radius: 28px;
  padding: 0.8rem;
  background: linear-gradient(145deg, rgba(31, 58, 95, 0.16), rgba(31, 58, 95, 0.04));
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 22px;
  display: block;
  object-fit: cover;
}

.section {
  padding: 2.6rem 0;
  scroll-margin-top: 80px;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.logo-train {
  width: 100%;
  margin: 0.9rem 0 1rem;
}

.logo-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2rem;
  width: 100%;
}

.logo-item {
  width: auto;
  height: 28px;
  max-width: 94px;
  object-fit: contain;
  flex: 0 0 auto;
}

.logo-item-fcps,
.logo-item-wellsfargo {
  height: 34px;
  max-width: 120px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

#experience .card-grid {
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 0.85rem;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.job-card .card-body {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.job-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 0.95rem;
  margin-bottom: 0.55rem;
}

.job-blurb {
  margin: 0 0 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.org-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.card-body,
.card > p,
.card > h3,
.card > .meta {
  padding-left: 1rem;
  padding-right: 1rem;
}

.card-body {
  padding-bottom: 1rem;
}

.card > h3 {
  padding-top: 1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.media-slot {
  min-height: 176px;
  display: grid;
  place-items: center;
  color: var(--primary-deep);
  font-weight: 700;
  background:
    linear-gradient(145deg, rgba(31, 58, 95, 0.11), rgba(31, 58, 95, 0.04)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.55) 10px,
      rgba(238, 241, 245, 0.75) 10px,
      rgba(238, 241, 245, 0.75) 20px
    );
}

.job-card .media-slot {
  min-height: 144px;
}

.job-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.org-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.org-media-akpsi {
  max-height: 300px;
  object-fit: cover;
  object-position: center 5%;
}

.org-media-smip {
  max-height: 300px;
  object-fit: cover;
}

.org-blurb {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.gap-year-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}

.gap-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 110px;
  gap: 0.5rem;
}

.gap-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.gap-what {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.gap-what h3 {
  margin-bottom: 0.5rem;
}

.gap-blurb {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.subpage {
  padding: 4rem 0 2.4rem;
}

.subpage p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer {
  width: min(1080px, 92vw);
  margin: 2.4rem auto 1.1rem;
  padding-top: 1.1rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-up 600ms ease forwards;
}

.section.reveal:nth-of-type(2) {
  animation-delay: 80ms;
}

.section.reveal:nth-of-type(3) {
  animation-delay: 140ms;
}

.section.reveal:nth-of-type(4) {
  animation-delay: 200ms;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .logo-track {
    gap: 1.2rem;
  }

  .logo-item {
    height: 22px;
    max-width: 68px;
  }

  .logo-item-fcps,
  .logo-item-wellsfargo {
    height: 26px;
    max-width: 86px;
  }
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-photo-wrap {
    max-width: 320px;
    justify-self: start;
  }

  .gap-year-container {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

@media (max-width: 700px) {
  .top-nav {
    gap: 0.7rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .gap-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 100px;
  }
}
