:root {
  --ink: #08131a;
  --teal: #3d7883;
  --sea: #6a9f96;
  --sage: #91b7a9;
  --cream: #e8e2c5;
  --paper: #f6f3e6;
  --panel: #fffdf4;
  --muted: #5c6b68;
  --line: rgba(8, 19, 26, 0.14);
  --shadow: 0 24px 80px rgba(8, 19, 26, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(61, 120, 131, 0.08), transparent 34%),
    var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(232, 226, 197, 0.16);
  color: #fff;
  background: rgba(8, 19, 26, 0.94);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(232, 226, 197, 0.55);
  background: rgba(145, 183, 169, 0.15);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.intro-hero {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 96px) 0 clamp(42px, 7vw, 76px);
}

.intro-hero h1 {
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(3.9rem, 10.8vw, 10.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.about-section {
  display: grid;
  align-items: center;
}

.section-label {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(360px, 1fr);
  max-width: 1040px;
  margin: 0 auto;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  margin-bottom: 18px;
  color: #203238;
  font-size: clamp(1.32rem, 2.3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.22;
}

.profile-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(8, 19, 26, 0.16), rgba(145, 183, 169, 0.18)),
    url("assets/soham.webp");
  background-position: center 28%;
  background-size: cover;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.about-copy {
  border: 1px solid var(--line);
  border-left: 8px solid var(--sea);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 253, 244, 0.76);
}

.about-copy p,
.projects-panel p {
  color: var(--muted);
  font-size: 1.12rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.experience-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.experience-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 26px;
  padding: 28px;
}

.experience-item + .experience-item {
  border-top: 1px solid var(--line);
}

.company-logo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 900;
}

.fidelity {
  color: #fff;
  background: #2d8b4c;
}

.texas {
  color: #fff;
  background: #bf5700;
}

.path {
  color: var(--ink);
  border: 3px solid var(--ink);
  background: #fff;
}

.knot {
  color: #fff;
  background: #6372ff;
}

.experience-body h3 {
  margin-bottom: 2px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.15;
}

.company {
  margin-bottom: 2px;
  color: #151b1d;
  font-size: 1.1rem;
  font-weight: 600;
}

.meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.location {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.02rem;
}

.summary {
  margin-bottom: 0;
  color: #151b1d;
  font-size: 1.08rem;
}

.projects-section {
  padding-top: 48px;
}

.compact-heading {
  margin-bottom: 22px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-item {
  display: flex;
  min-height: 246px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 253, 244, 0.76);
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.project-head h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.project-head span {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
}

.project-item p {
  color: var(--muted);
  font-size: 1.02rem;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.skill-icons span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(61, 120, 131, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  color: #123841;
  background: rgba(145, 183, 169, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-grid a {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(232, 226, 197, 0.18);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
}

.contact-grid a:hover {
  background: #102833;
}

.contact-grid span {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-grid strong {
  overflow-wrap: anywhere;
  font-size: 1.1rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
    font-size: 0.85rem;
  }

  .section {
    padding: 42px 0;
  }

  .about-grid,
  .contact-section,
  .contact-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .about-grid {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

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

  .nav a {
    padding: 8px 4px;
    border: 1px solid rgba(232, 226, 197, 0.18);
    border-radius: 8px;
    text-align: center;
  }

  .section {
    width: min(100% - 32px, 1120px);
    padding: 38px 0;
  }

  .intro-hero {
    width: min(100% - 32px, 1120px);
    padding: 42px 0 34px;
  }

  .intro-hero h1 {
    white-space: normal;
    font-size: clamp(3.3rem, 17vw, 4.8rem);
  }

  .lead {
    font-size: 1.28rem;
  }

  .experience-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }

  .company-logo {
    width: 48px;
    height: 48px;
    font-size: 0.82rem;
  }

  .meta,
  .location,
  .summary,
  .company {
    font-size: 0.98rem;
  }

  .project-head {
    display: grid;
    gap: 6px;
  }

  .project-item {
    min-height: auto;
    padding: 18px;
  }

  .footer {
    width: min(100% - 32px, 1120px);
    flex-direction: column;
  }
}
