:root {
  --page: #f6f8f4;
  --ink: #141614;
  --muted: #60675f;
  --soft: #e7ece4;
  --line: #d8dfd5;
  --panel: #ffffff;
  --deep: #06332f;
  --teal: #008c89;
  --cobalt: #2451d6;
  --coral: #da503a;
  --gold: #d5a229;
  --shadow: 0 18px 48px rgba(20, 22, 20, 0.09);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 22, 20, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, var(--page) 620px, #eef3ee 100%);
  background-size: 96px 96px, auto;
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(0, 140, 137, 0.11), transparent 32%),
    linear-gradient(260deg, rgba(218, 80, 58, 0.1), transparent 30%);
  opacity: 0.85;
}

a {
  color: inherit;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
  position: relative;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 42px;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a,
.header-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-link:hover,
.header-link:focus-visible {
  color: var(--ink);
}

.header-link {
  border-bottom: 2px solid var(--teal);
  padding-bottom: 3px;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
  padding: 28px 0 48px;
}

.hero::after {
  content: "BFSI";
  position: absolute;
  right: 0;
  top: 0;
  color: rgba(0, 140, 137, 0.09);
  font-family: "Instrument Serif", serif;
  font-size: 172px;
  line-height: 1;
  pointer-events: none;
}

.eyebrow,
.section-kicker,
.project-meta {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: "Instrument Serif", serif;
  font-size: 78px;
  font-weight: 400;
  line-height: 1;
}

.hero-lede {
  max-width: 720px;
  color: #2e352f;
  font-size: 20px;
  line-height: 1.6;
}

.hero-note {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.hero-facts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  border-top: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-facts div {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 0;
}

.hero-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
}

.hero-facts p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.section {
  padding: 76px 0;
}

.section-header {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  margin-bottom: 34px;
}

.section-header h2 {
  max-width: 780px;
  font-size: 44px;
  line-height: 1.08;
}

.impact-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.impact-item {
  min-height: 220px;
  padding: 24px;
  background: var(--panel);
}

.impact-item span {
  display: block;
  margin-bottom: 18px;
  color: var(--deep);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.impact-item p,
.expertise-item p,
.project-item p,
.project-item li,
.post-copy p,
.about-copy p,
.about-point p,
.proof-item p,
.contact-section p {
  color: var(--muted);
  line-height: 1.65;
}

.expertise-list {
  border-top: 1px solid var(--line);
}

.expertise-item {
  display: grid;
  grid-template-columns: 80px 260px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.expertise-item span {
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 800;
}

.expertise-item h3,
.project-item h3,
.proof-item h3 {
  font-size: 24px;
  line-height: 1.15;
}

.expertise-item p {
  margin-bottom: 0;
}

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

.project-item,
.proof-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.project-item ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.project-item li + li {
  margin-top: 8px;
}

.linkedin-post-section {
  width: 100%;
  max-width: none;
  background: var(--deep);
  color: #ffffff;
  padding: 76px max(16px, calc((100vw - var(--max-width)) / 2));
}

.linkedin-post-section .section-header h2,
.linkedin-post-section .eyebrow {
  color: #ffffff;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 504px);
  gap: 44px;
  align-items: start;
}

.post-copy {
  max-width: 560px;
}

.post-copy p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
}

.post-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #ffffff;
}

.post-frame iframe {
  display: block;
  width: 100%;
  max-width: 504px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  gap: 28px;
}

.about-grid-full {
  grid-template-columns: minmax(0, 1fr);
}

.about-copy p {
  font-size: 18px;
  max-width: 980px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-point {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.about-point h3 {
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 20px;
  font-weight: 800;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-section {
  margin-bottom: 40px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-section h2 {
  max-width: 780px;
  font-size: 48px;
  line-height: 1.08;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

.visitor-counter {
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    flex-wrap: wrap;
  }

  .hero,
  .section-header,
  .post-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
  }

  .hero::after {
    font-size: 108px;
  }

  h1 {
    font-size: 62px;
  }

  .impact-grid,
  .project-list,
  .about-points,
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .expertise-item p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 12px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero::after {
    top: 0;
    right: 0;
    font-size: 68px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lede,
  .hero-note,
  .post-copy p,
  .about-copy p {
    font-size: 17px;
  }

  .section {
    padding: 54px 0;
  }

  .section-header h2,
  .contact-section h2 {
    font-size: 32px;
  }

  .impact-grid,
  .project-list,
  .about-points,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .impact-item {
    min-height: auto;
  }

  .expertise-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .expertise-item p {
    grid-column: auto;
  }

  .linkedin-post-section {
    padding: 54px 12px;
  }

  .post-frame iframe {
    height: 560px;
  }

  .contact-section {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}
