:root {
  --bg: #f6f7f2;
  --bg-elevated: #ffffff;
  --ink: #141414;
  --muted: #5c5c57;
  --subtle: #8a8a84;
  --line: rgba(20, 20, 20, 0.1);
  --accent: #7eb82a;
  --accent-strong: #6a9620;
  --accent-dim: rgba(126, 184, 42, 0.14);
  --font-display: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 12% -8%, rgba(126, 184, 42, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 18%, rgba(126, 184, 42, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef1e8 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--pad);
  border-bottom: 1px solid transparent;
  background: var(--bg-elevated);
  transition:
    border-color 0.25s ease,
    padding 0.3s ease;
}

.site-header.is-scrolled {
  padding: 0.85rem var(--pad);
  border-bottom-color: var(--line);
}

.brand img {
  width: min(270px, 58vw);
  height: auto;
  transition: width 0.3s ease;
}

.site-header.is-scrolled .brand img {
  width: min(180px, 42vw);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--accent-strong);
}

.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 247, 242, 0.94) 0%, rgba(246, 247, 242, 0.78) 40%, rgba(246, 247, 242, 0.35) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, rgba(246, 247, 242, 0.75) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 3.5rem) var(--pad);
}

.hero-title {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: rise 0.9s ease both;
}

.hero-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  animation: rise 0.9s ease 0.18s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  animation: rise 0.9s ease 0.26s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #141414;
}

.btn-primary:hover {
  background: #8fc93a;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
}

.btn-ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) var(--pad);
}

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.pipeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
}

.pipeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: -0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.55;
}

.pipeline-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.1rem;
  color: var(--accent-strong);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85), transparent 55%),
    linear-gradient(145deg, var(--accent-dim), rgba(126, 184, 42, 0.08));
  box-shadow: inset 0 0 0 1px rgba(126, 184, 42, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.pipeline-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.pipeline li:hover .pipeline-icon {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(126, 184, 42, 0.45),
    0 10px 22px rgba(126, 184, 42, 0.12);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(145deg, rgba(126, 184, 42, 0.28), rgba(126, 184, 42, 0.1));
}

.pipeline h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pipeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 0.75rem;
  }

  .pipeline li:not(:last-child)::after {
    display: none;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .pipeline-icon,
  .pipeline li:hover .pipeline-icon {
    transition: none;
    transform: none;
  }
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 0.6rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.8vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.section-lead {
  margin: 0 0 1.35rem;
  max-width: none;
  color: var(--muted);
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 2.5rem;
}

.skill-list h3,
.delivery-panels h3,
.stack-group h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.delivery-panels h3 {
  margin: 0;
}

.skill-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.delivery-panels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.5rem 1.25rem;
}

.delivery-panels article {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.delivery-media {
  margin-bottom: 0.15rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e4e7dc;
}

.delivery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.delivery-panels article:hover .delivery-media img {
  transform: scale(1.04);
}

.delivery-panels p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.75rem 2rem;
}

.stack-grid-follow {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 800px) {
  .stack-grid-follow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stack-grid-follow {
    grid-template-columns: 1fr;
  }
}

.stack-group p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-grid .optional {
  font-weight: 500;
  color: var(--subtle);
}

.contact-span {
  grid-column: 1 / -1;
}

.contact-grid input,
.contact-grid textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.contact-grid input:focus,
.contact-grid textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-grid textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.contact-status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-status.is-success {
  color: var(--accent-strong);
}

.contact-status.is-error {
  color: #b42318;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 2.25rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  text-align: right;
}

.footer-brand img {
  width: 180px;
  margin-bottom: 0.55rem;
  opacity: 0.9;
}

.footer-place,
.footer-phone {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-place {
  margin-bottom: 0.15rem;
}

.footer-phone a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-phone a:hover,
.footer-phone a:focus-visible {
  color: var(--accent-strong);
}

.footer-copy {
  margin: 0;
  text-align: left;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem 1.5rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 3.5rem;
  }
}

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

  .hero-title,
  .hero-lead,
  .hero-actions,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .delivery-media img,
  .delivery-panels article:hover .delivery-media img,
  .site-header,
  .brand img {
    transition: none;
    transform: none;
  }
}
