:root {
  --bg-start: #e2e2df;
  --bg-end: #f6f6f5;
  --ink: #17181a;
  --muted: #63645d;
  --muted-2: #6b6c66;
  --accent: #2faec7;
  --grad-1: #8fe0ee;
  --grad-2: #2faec7;
  --grad-3: #1c8ba1;
  --border-hue-1: #b9eef2;
  --border-hue-2: #8fe0ee;
  --border-hue-3: #2faec7;
  --border-hue-4: #1c8ba1;
  --error: #c0392b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  scroll-snap-type: y proximity;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #1f87a0;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes border-hue-shift {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

@keyframes gradient-drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: repeating-radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 0, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(20, 20, 18, 0.07) 100%);
  z-index: 0;
}

.gradient-text {
  background: linear-gradient(100deg, var(--grad-1), var(--grad-2) 55%, var(--grad-3));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-drift 9s ease-in-out infinite;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: rgba(240, 240, 238, 0.32);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #5c5d58;
}

/* Hero */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 48px 24px 20px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  max-width: 840px;
  margin: 0;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
  margin: 0;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 8px 24px rgba(20, 30, 28, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(90deg, var(--border-hue-1), var(--border-hue-2), var(--border-hue-3), var(--border-hue-4), var(--border-hue-2), var(--border-hue-1));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-hue-shift 6s linear infinite;
  z-index: -1;
}

.cta-label {
  font-weight: 700;
}

.pipe-canvas-wrap {
  width: calc(100% + 48px);
  margin: 28px -24px 0;
  height: 420px;
  position: relative;
}

#pipe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Services */

.services-section {
  scroll-snap-align: start;
  scroll-margin-top: 76px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  padding: 64px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 44px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 30px;
  margin: 10px 0 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1000px;
}

.service-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 14px 32px rgba(20, 30, 28, 0.09);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 0.4s ease;
  will-change: transform;
}

.service-index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(47, 174, 199, 0.12);
  border: 1px solid rgba(47, 174, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #161715;
}

.service-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Process */

.process-section {
  scroll-snap-align: start;
  scroll-margin-top: 76px;
  min-height: calc(100vh - 76px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 20px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.process-section .section-heading {
  margin-bottom: 56px;
}

.process-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.process-line {
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, rgba(120, 120, 116, 0.35), var(--accent));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-end);
  border-width: 2px;
  border-style: solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: default;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.process-step.active .step-circle {
  transform: scale(1.25);
  transition: transform 0.15s ease;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.step-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  max-width: 150px;
  filter: blur(9px);
  opacity: 0.45;
  transform: translateY(6px);
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.process-step.active .step-desc {
  filter: blur(0px);
  opacity: 1;
  transform: translateY(0px);
  transition: filter 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Contact */

.contact-section {
  scroll-snap-align: start;
  scroll-margin-top: 108px;
  min-height: calc(100vh - 108px - 93px);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
  box-sizing: border-box;
}

.contact-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 20px 44px rgba(20, 30, 28, 0.1);
  padding: 44px;
}

.contact-confirm {
  text-align: center;
  padding: 40px 0;
}

.confirm-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #141515;
  margin-bottom: 10px;
}

.confirm-sub {
  font-size: 15px;
  color: var(--muted);
}

.contact-title {
  font-size: 26px;
  margin: 0 0 24px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#contact-form input,
#contact-form textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  outline: none;
}

#contact-form textarea {
  resize: vertical;
}

.form-error {
  font-size: 13px;
  color: var(--error);
}

.submit-button {
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-end);
  font-weight: 600;
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  border: none;
  cursor: pointer;
  opacity: 1;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  color: #8b8c86;
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

/* Responsive */

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 18px 20px;
  }

  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .process-track {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .process-line {
    display: none;
  }
}
