:root {
  --ink: #16211c;
  --ink-soft: #46534d;
  --paper: #f7f5ef;
  --paper-strong: #fffdf7;
  --line: #d8d2c6;
  --line-strong: #b9b0a0;
  --forest: #1f6b54;
  --forest-dark: #124232;
  --amber: #c8792f;
  --blue: #315f78;
  --shadow: 0 18px 48px rgba(24, 31, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 33, 28, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 33, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 210, 198, 0.82);
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--paper-strong);
  background: var(--forest-dark);
  font-size: 0.86rem;
}

.main-nav {
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a,
.header-cta,
.button {
  text-decoration: none;
}

.main-nav a:hover,
.header-cta:hover {
  color: var(--forest);
}

.header-cta {
  color: var(--forest-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-section {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(80px, 12vw, 132px) clamp(18px, 5vw, 72px) clamp(40px, 7vw, 72px);
  background: #101916;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 15, 13, 0.92) 0%, rgba(8, 15, 13, 0.74) 44%, rgba(8, 15, 13, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 15, 13, 0.08) 0%, rgba(8, 15, 13, 0.72) 100%);
}

.hero-content {
  position: relative;
  max-width: min(1120px, 72vw);
  color: var(--paper-strong);
}

.eyebrow,
.section-kicker,
.company,
.card-index,
time {
  display: inline-block;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.section h2,
.contact-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
}

.hero-content h1 {
  max-width: 1060px;
  margin-top: 18px;
  font-size: clamp(3rem, 6.8vw, 7.4rem);
}

.mobile-title {
  display: none;
}

.hero-lede {
  max-width: 820px;
  margin: 26px 0 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

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

.button {
  min-height: 48px;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  color: var(--paper-strong);
  background: var(--forest);
}

.button.secondary {
  color: var(--paper-strong);
  border: 1px solid rgba(255, 253, 247, 0.38);
  background: rgba(255, 253, 247, 0.08);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 960px;
  margin: clamp(42px, 7vw, 78px) 0 0;
  border: 1px solid rgba(255, 253, 247, 0.18);
  background: rgba(255, 253, 247, 0.18);
}

.hero-proof div {
  padding: 20px;
  background: rgba(16, 25, 22, 0.72);
}

.hero-proof dt {
  margin-bottom: 6px;
  font-size: 1.32rem;
  font-weight: 800;
}

.hero-proof dd {
  margin: 0;
  color: rgba(255, 253, 247, 0.72);
  line-height: 1.45;
}

.section,
.contact-section {
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0 0;
}

.intro-grid,
.section-heading,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 6vw, 72px);
}

.intro-grid > *,
.section-heading > *,
.contact-section > * {
  min-width: 0;
}

.intro-grid h2,
.section h2,
.contact-section h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.6rem);
  overflow-wrap: anywhere;
}

.intro-copy p,
.feature-card p,
.achievement-card p,
.stack-group p,
.timeline p,
.contact-section p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}

.intro-copy p {
  margin: 0 0 18px;
}

.expertise-grid,
.stack-grid {
  display: grid;
  gap: 16px;
}

.expertise-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.stack-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.74);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 24px;
}

.card-index {
  margin-bottom: 34px;
  color: var(--blue);
}

h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.2;
}

p {
  margin-top: 0;
}

.achievements-section {
  width: 100%;
  padding-inline: max(32px, calc((100% - 1360px) / 2));
  padding-bottom: clamp(72px, 10vw, 120px);
  background: linear-gradient(180deg, transparent 0%, transparent 10%, #ebe6dc 10%, #ebe6dc 100%);
}

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

.achievement-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.achievement-media {
  position: relative;
  min-height: 290px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 24px;
  color: rgba(255, 253, 247, 0.9);
  background: var(--forest-dark);
  isolation: isolate;
}

.achievement-media::before,
.achievement-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.achievement-media::before {
  background:
    linear-gradient(120deg, rgba(255, 253, 247, 0.16) 1px, transparent 1px),
    linear-gradient(60deg, rgba(255, 253, 247, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.75;
}

.achievement-media::after {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 253, 247, 0.28), transparent 18%),
    linear-gradient(180deg, transparent 0%, rgba(10, 18, 15, 0.72) 100%);
}

.achievement-media span {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

.media-aws {
  background:
    linear-gradient(135deg, #17382f 0%, #225a49 52%, #c8792f 100%);
}

.media-databricks {
  background:
    linear-gradient(135deg, #1d3442 0%, #315f78 52%, #a94c38 100%);
}

.media-banking {
  background:
    linear-gradient(135deg, #1f2b24 0%, #1f6b54 52%, #d3a84f 100%);
}

.media-platform {
  background:
    linear-gradient(135deg, #2b2c38 0%, #53636d 54%, #1f6b54 100%);
}

.achievement-content {
  padding: 28px;
}

.achievement-card p {
  margin-bottom: 0;
}

.achievement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.achievement-tags li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest-dark);
  background: #f3eee4;
  font-size: 0.82rem;
  font-weight: 800;
}

.company {
  margin-bottom: 12px;
  color: var(--forest);
}

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

.stack-group {
  padding: 26px;
}

.stack-group p {
  margin-bottom: 0;
}

.timeline {
  border-left: 2px solid var(--forest);
  padding-left: 26px;
}

.timeline article {
  position: relative;
  padding: 0 0 34px;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -34px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--forest);
}

.timeline p {
  margin-bottom: 0;
}

.contact-section {
  align-items: center;
  margin-top: clamp(72px, 10vw, 120px);
  margin-bottom: 72px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  color: var(--paper-strong);
  background: var(--forest-dark);
}

.contact-section p {
  margin: 18px 0 0;
  color: rgba(255, 253, 247, 0.78);
}

.contact-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-section .button.primary {
  background: var(--amber);
}

.contact-section .button.secondary {
  border-color: rgba(255, 253, 247, 0.32);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.is-visible {
  animation: rise-in 640ms ease forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

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

  .intro-grid,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

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

  .header-cta {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 52px 20px 30px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 15, 13, 0.78) 0%, rgba(8, 15, 13, 0.92) 78%),
      linear-gradient(90deg, rgba(8, 15, 13, 0.6), rgba(8, 15, 13, 0.28));
  }

  .hero-proof,
  .expertise-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    margin-top: 14px;
    font-size: clamp(2.22rem, 11.5vw, 2.9rem);
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-proof {
    display: none;
  }

  .button {
    width: 100%;
  }

  .section,
  .contact-section {
    width: min(100% - 28px, 1360px);
  }

  .achievements-section {
    padding-inline: 14px;
  }

  .achievement-media {
    min-height: 220px;
  }
}
