:root {
  --ink: #17201c;
  --muted: #5d6862;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #ddd8cd;
  --accent: #0f6b5c;
  --accent-dark: #08483e;
  --gold: #c99332;
  --blue: #315c8a;
  --shadow: 0 18px 50px rgba(29, 32, 29, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(221, 216, 205, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.hero {
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding: clamp(52px, 9vw, 118px) clamp(20px, 7vw, 86px);
}

.hero-media {
  position: relative;
  order: 2;
  min-height: 440px;
  background:
    linear-gradient(180deg, rgba(8, 72, 62, 0.02), rgba(23, 32, 28, 0.1)),
    url("assets/venkat-mani-hero.jpeg");
  background-position: center 40%;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  isolation: isolate;
}

.hero-media::before {
  position: absolute;
  inset: 18px;
  z-index: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(8, 72, 62, 0.24);
  pointer-events: none;
}

.hero-media::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  content: "";
  background: linear-gradient(90deg, var(--accent-dark), var(--gold), var(--blue));
  pointer-events: none;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(3.6rem, 12vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.preferred-name {
  display: block;
  font-weight: 430;
  white-space: nowrap;
}

.full-name {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 7px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  background: transparent;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(58px, 9vw, 104px) clamp(20px, 5vw, 42px);
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: none;
  padding: 0 clamp(20px, 5vw, 64px);
  background: var(--line);
}

.metric {
  min-height: 150px;
  padding: 28px;
  background: var(--paper);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 1.3rem;
}

.metric span,
.intro p,
.project-body p,
.skill-columns p,
.timeline-list p,
.contact p {
  color: var(--muted);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(280px, 1fr);
  gap: clamp(32px, 7vw, 80px);
  align-items: start;
}

.intro > p {
  margin: 0;
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 34px;
}

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

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

.project-image {
  min-height: 182px;
  background-size: cover;
  background-position: center;
}

.project-one {
  background-image:
    linear-gradient(135deg, rgba(15, 107, 92, 0.2), rgba(23, 32, 28, 0.25)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=900&q=80");
}

.project-two {
  background-image:
    linear-gradient(135deg, rgba(49, 92, 138, 0.18), rgba(23, 32, 28, 0.2)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=80");
}

.project-three {
  background-image:
    linear-gradient(135deg, rgba(201, 147, 50, 0.18), rgba(23, 32, 28, 0.2)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80");
}

.project-body {
  padding: 24px;
}

.project-body p:last-of-type {
  min-height: 116px;
}

.project-body span,
.contact-panel a {
  color: var(--accent-dark);
  font-weight: 760;
}

.contact-panel a {
  text-decoration-color: rgba(15, 107, 92, 0.35);
  text-underline-offset: 4px;
}

.skills {
  max-width: none;
  background: #edf4f1;
}

.skills .section-heading,
.skill-columns {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.skill-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-columns > div {
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 107, 92, 0.16);
  border-radius: 8px;
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline-list span {
  color: var(--gold);
  font-weight: 800;
  line-height: 1.2;
}

.timeline-list p {
  margin: 8px 0 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.58fr);
  gap: 34px;
  align-items: start;
  max-width: none;
  padding-right: clamp(20px, 5vw, 64px);
  padding-left: clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: #fff;
}

.contact p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.74);
}

.contact .section-kicker {
  color: #78d1c4;
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.contact-panel a {
  min-height: 42px;
  color: #fff;
}

@media (max-width: 900px) {
  .hero,
  .intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    min-height: 320px;
  }

  .project-grid,
  .skill-columns,
  .strip {
    grid-template-columns: 1fr;
  }

  .project-body p:last-of-type {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 250px;
  }

  .hero-content {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.6rem);
  }

  .button {
    width: 100%;
  }

  .timeline-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
