:root {
  --ink: #101310;
  --muted: #6f756c;
  --paper: #f3f0e7;
  --porcelain: #fffaf0;
  --line: rgba(16, 19, 16, 0.14);
  --copper: #c8613e;
  --moss: #5f7f45;
  --teal: #18a0a8;
  --gold: #d8a83f;
  --graphite: #161a17;
  --data-green: #8ad66b;
  --shadow: 0 24px 70px rgba(16, 19, 16, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.nav {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  padding: 22px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.nav-action,
.nav-links {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(255, 250, 240, 0.2);
  box-shadow: 0 12px 36px rgba(16, 19, 16, 0.16);
  display: inline-flex;
}

.brand {
  border-radius: 999px;
  font-weight: 800;
  gap: 10px;
  justify-self: start;
  padding: 9px 14px 9px 10px;
}

.brand-mark {
  background:
    linear-gradient(135deg, var(--data-green), var(--gold) 48%, var(--teal));
  border-radius: 50%;
  display: inline-block;
  height: 22px;
  width: 22px;
}

.nav-links {
  border-radius: 999px;
  gap: 4px;
  justify-self: center;
  padding: 6px;
}

.nav-links a,
.nav-action {
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 38px;
  padding: 10px 14px;
}

.nav-links a:hover,
.nav-action:hover {
  background: var(--ink);
  color: var(--porcelain);
}

.nav-action {
  justify-self: end;
}

.hero {
  background:
    linear-gradient(90deg, rgba(16, 19, 16, 0.96) 0%, rgba(16, 19, 16, 0.9) 38%, rgba(16, 19, 16, 0.42) 70%, rgba(16, 19, 16, 0.14) 100%),
    linear-gradient(180deg, rgba(16, 19, 16, 0.1), rgba(16, 19, 16, 0.82)),
    url("./assets/data-lakehouse-hero.png") center right / cover no-repeat,
    #101310;
  color: var(--porcelain);
  min-height: 94vh;
  padding: 156px clamp(18px, 4vw, 56px) 54px;
  position: relative;
}

.hero::before {
  background-image:
    linear-gradient(rgba(255, 250, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

#hero-scene,
.fallback-scene {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

#hero-scene {
  display: none;
  z-index: 1;
}

.fallback-scene {
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.fallback-scene span {
  animation: floatFallback 9s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(189, 87, 52, 0.78), rgba(18, 111, 120, 0.72));
  box-shadow: var(--shadow);
  display: block;
  position: absolute;
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.fallback-scene span:nth-child(1) {
  height: 170px;
  right: 19%;
  top: 22%;
  width: 170px;
}

.fallback-scene span:nth-child(2) {
  animation-delay: -2s;
  height: 96px;
  right: 42%;
  top: 48%;
  width: 96px;
}

.fallback-scene span:nth-child(3) {
  animation-delay: -4s;
  bottom: 18%;
  height: 130px;
  right: 12%;
  width: 130px;
}

.fallback-scene span:nth-child(4) {
  animation-delay: -6s;
  height: 64px;
  right: 34%;
  top: 19%;
  width: 64px;
}

@keyframes floatFallback {
  0%, 100% { transform: translateY(0) rotate(45deg) skew(-8deg, -8deg); }
  50% { transform: translateY(-18px) rotate(58deg) skew(-8deg, -8deg); }
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 3;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.35rem);
  line-height: 0.92;
  max-width: 820px;
}

.hero-copy {
  color: rgba(255, 250, 240, 0.76);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.7;
  margin: 28px 0 0;
  max-width: 650px;
}

.profile-strip {
  align-items: center;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 999px;
  display: inline-flex;
  gap: 12px;
  margin-top: 24px;
  max-width: min(100%, 640px);
  padding: 8px 18px 8px 8px;
}

.profile-strip img {
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 50%;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.profile-strip strong,
.profile-strip span {
  display: block;
}

.profile-strip strong {
  color: var(--porcelain);
  font-size: 0.96rem;
}

.profile-strip span {
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  max-width: 620px;
}

.stack-list span {
  background: rgba(24, 160, 168, 0.12);
  border: 1px solid rgba(24, 160, 168, 0.32);
  border-radius: 999px;
  color: #bffcff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 11px;
}

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

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
}

.button.primary {
  background: var(--data-green);
  color: var(--porcelain);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.18);
  color: var(--porcelain);
}

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

.hero-panel {
  align-items: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 68px;
  max-width: 560px;
  position: relative;
  z-index: 3;
}

.hero-panel div {
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.13);
  min-height: 118px;
  padding: 18px;
}

.hero-panel div:first-child {
  border-radius: 8px 0 0 8px;
}

.hero-panel div:last-child {
  border-radius: 0 8px 8px 0;
}

.hero-panel span {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.hero-panel p {
  color: rgba(255, 250, 240, 0.62);
  line-height: 1.45;
  margin: 6px 0 0;
}

.section {
  padding: 96px clamp(18px, 4vw, 56px);
}

.work-section {
  background:
    radial-gradient(circle at 12% 4%, rgba(24, 160, 168, 0.1), transparent 34%),
    linear-gradient(180deg, #f3f0e7 0%, #e6eee2 100%);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 720px) 1fr;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.section-heading h2,
.process-copy h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

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

.work-card {
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(64, 52, 39, 0.1);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.work-card:hover {
  box-shadow: 0 28px 70px rgba(16, 19, 16, 0.18);
  transform: translateY(-4px);
}

.work-media {
  aspect-ratio: 1.22;
  background-color: #e6d7be;
  position: relative;
}

.work-media::before,
.work-media::after {
  content: "";
  position: absolute;
}

.media-aurora {
  background:
    linear-gradient(130deg, rgba(16, 19, 16, 0.95), rgba(24, 160, 168, 0.78)),
    #18a0a8;
}

.media-aurora::before {
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(138, 214, 107, 0.85) 16% 19%, transparent 19% 34%, rgba(216, 168, 63, 0.82) 34% 37%, transparent 37% 100%);
  height: 58%;
  left: 12%;
  top: 22%;
  width: 76%;
}

.media-aurora::after {
  border: 1px solid rgba(255, 250, 240, 0.28);
  height: 44%;
  left: 22%;
  top: 28%;
  width: 54%;
}

.media-signal {
  background:
    linear-gradient(145deg, rgba(95, 127, 69, 0.95), rgba(16, 19, 16, 0.84)),
    #5f7f45;
}

.media-signal::before {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.2), rgba(255, 250, 240, 0.2)) left 20% top 50% / 72% 2px no-repeat,
    radial-gradient(circle, var(--data-green) 0 7px, transparent 8px) left 20% top 50% / 100% 100% no-repeat,
    radial-gradient(circle, var(--gold) 0 8px, transparent 9px) left 52% top 50% / 100% 100% no-repeat,
    radial-gradient(circle, var(--teal) 0 9px, transparent 10px) left 86% top 50% / 100% 100% no-repeat;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
}

.media-signal::after {
  border: 1px solid rgba(255, 250, 240, 0.22);
  bottom: 18%;
  height: 64%;
  right: 14%;
  transform: none;
  width: 42%;
}

.media-forge {
  background:
    linear-gradient(145deg, rgba(21, 19, 16, 0.92), rgba(18, 111, 120, 0.86)),
    #151310;
}

.media-forge::before {
  background: conic-gradient(from 120deg, var(--teal), var(--gold), var(--data-green), var(--teal));
  border-radius: 50%;
  height: 48%;
  left: 24%;
  top: 22%;
  transform: none;
  width: 48%;
}

.media-forge::after {
  border: 1px solid rgba(255, 250, 240, 0.75);
  bottom: 17%;
  height: 48%;
  right: 15%;
  width: 52%;
}

.work-body {
  padding: 22px;
}

.work-body p,
.work-body span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
}

.work-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.12;
  margin: 9px 0 18px;
}

.capability-section {
  background:
    radial-gradient(circle at 18% 10%, rgba(138, 214, 107, 0.12), transparent 28%),
    #151812;
  color: var(--porcelain);
}

.capability-section .section-heading h2,
.capability-item h3 {
  color: var(--porcelain);
}

.capability-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.capability-item {
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 250, 240, 0.12);
  min-height: 280px;
  padding: 24px;
}

.capability-item:first-child {
  border-radius: 8px 0 0 8px;
}

.capability-item:last-child {
  border-radius: 0 8px 8px 0;
}

.capability-item span {
  color: var(--data-green);
  display: block;
  font-weight: 800;
  margin-bottom: 54px;
}

.capability-item h3 {
  font-size: 1.35rem;
}

.capability-item p,
.timeline p {
  color: rgba(255, 250, 240, 0.62);
  line-height: 1.65;
  margin: 12px 0 0;
}

.process-section {
  align-items: start;
  background: var(--ink);
  color: var(--porcelain);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(280px, 560px) 1fr;
}

.process-section .eyebrow {
  color: var(--gold);
}

.timeline {
  counter-reset: phase;
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  padding: 22px;
}

.timeline span {
  color: var(--gold);
  display: block;
  font-weight: 800;
}

.timeline p {
  color: rgba(255, 250, 240, 0.72);
}

.contact-section {
  align-items: center;
  background: var(--porcelain);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  padding: 84px clamp(18px, 4vw, 56px);
}

.contact-section h2 {
  max-width: 860px;
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(16, 19, 16, 0.96) 0%, rgba(16, 19, 16, 0.9) 58%, rgba(16, 19, 16, 0.76) 100%),
      url("./assets/data-lakehouse-hero.png") 66% bottom / auto 58% no-repeat,
      #101310;
    min-height: 98vh;
    padding-top: 126px;
  }

  .hero-content {
    max-width: 650px;
  }

  .hero-panel,
  .section-heading,
  .work-grid,
  .capability-grid,
  .process-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-top: 58px;
  }

  .hero-panel div,
  .hero-panel div:first-child,
  .hero-panel div:last-child,
  .capability-item,
  .capability-item:first-child,
  .capability-item:last-child {
    border-radius: 8px;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    display: inline;
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.85rem);
    line-height: 0.94;
  }

  .profile-strip {
    align-items: flex-start;
    border-radius: 8px;
    padding: 10px;
  }

  .profile-strip span {
    font-size: 0.78rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel {
    gap: 8px;
  }

  .hero-panel div {
    min-height: auto;
  }

  .section {
    padding-bottom: 68px;
    padding-top: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
