:root {
  --ink: #0e1512;
  --ink-soft: #1a2620;
  --olive: #2a3d32;
  --foam: #e8f2ec;
  --mist: #c5d9cc;
  --accent: #1fa67a;
  --accent-deep: #167a59;
  --highlight: #f0c75e;
  --white: #f7faf8;
  --muted: rgba(232, 242, 236, 0.72);
  --line: rgba(232, 242, 236, 0.14);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--foam);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(31, 166, 122, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(240, 199, 94, 0.1), transparent 50%),
    linear-gradient(165deg, #0a100e 0%, var(--ink) 40%, #14201a 100%);
  min-height: 100vh;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--space);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(14, 21, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--highlight);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--foam);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 7rem var(--space) 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-mosaic {
  position: absolute;
  inset: -2%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1.05fr;
  gap: 0.35rem;
  transform: scale(1.03);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.78);
}

.hero-mosaic img:nth-child(1) {
  grid-row: 1 / 3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 16, 14, 0.92) 0%, rgba(10, 16, 14, 0.72) 42%, rgba(10, 16, 14, 0.35) 70%, rgba(10, 16, 14, 0.55) 100%),
    linear-gradient(to top, rgba(10, 16, 14, 0.88) 0%, transparent 45%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  animation: rise 0.9s var(--ease) both;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--highlight);
  margin-bottom: 0.85rem;
  animation: rise 0.9s 0.08s var(--ease) both;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  max-width: 14ch;
  margin-bottom: 1rem;
  animation: rise 0.9s 0.16s var(--ease) both;
}

.hero-lead {
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 1.75rem;
  animation: rise 0.9s 0.24s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s 0.32s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1%, -0.8%, 0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

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

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

.btn-primary:hover {
  background: var(--highlight);
}

.btn-ghost {
  border-color: rgba(232, 242, 236, 0.35);
  color: var(--foam);
  background: rgba(14, 21, 18, 0.25);
}

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

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) var(--space);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--highlight);
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: 0.65rem;
}

.section-lead {
  color: var(--muted);
  max-width: 38rem;
}

/* Portfolio */
.portfolio {
  max-width: calc(var(--max) + 2 * var(--space));
  margin: 0 auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

.case-feature {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.75rem;
  align-items: end;
  margin-bottom: 2.5rem;
  max-width: var(--max);
  margin-inline: auto;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.case-media {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  background: var(--ink-soft);
  outline: 1px solid var(--line);
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.case:hover .case-media img,
.case-feature:hover .case-media img {
  transform: scale(1.04);
}

.case-body {
  padding-top: 0.85rem;
}

.case-feature .case-body {
  padding: 0 0 0.5rem;
}

.case-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 0.4rem;
}

.case-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.case-body p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

.text-link {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.text-link:hover {
  color: var(--highlight);
  border-bottom-color: var(--highlight);
}

/* Packages — interaction cards */
.packages {
  background:
    linear-gradient(180deg, transparent, rgba(26, 38, 32, 0.65) 12%, rgba(26, 38, 32, 0.65) 88%, transparent);
}

.packages .section-head,
.package-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.package {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 21, 18, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.package:hover {
  border-color: rgba(31, 166, 122, 0.55);
  transform: translateY(-3px);
}

.package-featured {
  border-color: rgba(31, 166, 122, 0.45);
  background:
    linear-gradient(160deg, rgba(31, 166, 122, 0.16), transparent 55%),
    rgba(14, 21, 18, 0.7);
}

.package-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--highlight);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.package h3 {
  font-size: 1.45rem;
}

.package-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.package ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.package li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.15rem;
  color: var(--foam);
  font-size: 0.94rem;
  border-top: 1px solid var(--line);
}

.package li:first-child {
  border-top: 0;
}

.package li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.package-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--highlight);
}

/* Process */
.process .section-head,
.steps {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--highlight);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Final CTA */
.cta-final {
  padding-top: 2rem;
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(31, 166, 122, 0.28), rgba(240, 199, 94, 0.12)),
    var(--ink-soft);
  border: 1px solid rgba(31, 166, 122, 0.35);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  padding: 2rem var(--space) 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--foam);
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--highlight);
}

.site-footer p + p {
  margin-top: 0.35rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Responsive */
@media (max-width: 960px) {
  .case-feature {
    grid-template-columns: 1fr;
  }

  .case-grid,
  .package-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .case-grid {
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 3.4rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--space) 1rem;
    background: rgba(14, 21, 18, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .hero {
    align-items: center;
    padding-bottom: 3.5rem;
  }

  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hero-mosaic img:nth-child(1) {
    grid-row: auto;
  }

  .hero h1 {
    max-width: none;
  }
}

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

  .hero-mosaic,
  .hero-inner,
  .brand-mark,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .reveal,
  .case-media img {
    animation: none !important;
    transition: none !important;
  }

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