:root {
  --red: #de2625;
  --red-deep: #c71f1e;
  --ink: #2b2b35;
  --ink-soft: #4b4b4f;
  --muted: #8a8a8e;
  --fog: #f6f6f5;
  --white: #ffffff;
  --line: #e4e4e2;
  --max: 1120px;
  --font-display: "Open Sans", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--fog);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

p {
  margin: 0;
}

/* Nav */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(222, 38, 37, 0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav__links a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-nav__links a:hover {
  opacity: 1;
}

.site-nav__cta {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(43, 43, 53, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

/* Sections */
.section {
  padding: 6.5rem 1.5rem 3rem;
}

.section--light {
  background: var(--fog);
}

.section--white {
  background: var(--white);
}

.section--red {
  background: var(--red);
  color: var(--white);
}

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

.section__head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__head--light h2 {
  color: var(--white);
}

.eyebrow {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.lede {
  margin-top: 1rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(160deg, #e83a35 0%, var(--red) 45%, #c91817 100%);
  color: var(--ink);
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero__logo {
  width: clamp(72px, 10vw, 104px);
  height: auto;
  margin-bottom: 1.75rem;
  animation: float-logo 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.hero__title {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero__rule {
  width: min(100%, 28rem);
  margin: 1.5rem 0 1.1rem;
  border: 0;
  border-top: 1px solid rgba(43, 43, 53, 0.55);
}

.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

.team-card,
.flow-card {
  background: var(--red);
  color: var(--white);
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover,
.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(199, 31, 30, 0.28);
}

.team-card h3,
.flow-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card hr,
.flow-card hr {
  width: 100%;
  margin: 0.85rem 0 1rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--white);
  flex-shrink: 0;
}

.team-card__media {
  flex: 1;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  min-height: 280px;
  background: #ececef;
  overflow: hidden;
}

.team-card__media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
}

.team-card__media--logo {
  background: #1a1a1c;
}

.team-card__media--logo img {
  width: 78%;
  height: auto;
  object-fit: contain;
}

.team-card p,
.flow-card p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

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

.flow-card {
  min-height: 220px;
  justify-content: space-between;
}

.flow-card p {
  margin-top: auto;
}

/* Process */
.process {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.process__step {
  flex: 1 1 0;
  min-width: 92px;
  text-align: center;
}

.process__num {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.process__box {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 0.65rem;
  border: 1px solid #cfcfd2;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.3;
}

.process__box--final {
  background: #111;
  border-color: #111;
  color: var(--white);
}

.process__arrow {
  align-self: center;
  margin-top: 1.6rem;
  color: var(--red);
  font-size: 1.4rem;
  line-height: 1;
  flex: 0 0 auto;
}

.process__copy {
  max-width: var(--max);
  margin: 2rem auto 0;
  display: grid;
  gap: 0.85rem;
}

.process__copy p {
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Guidelines */
.guidelines {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  min-height: 360px;
}

.guideline {
  padding: 0 1.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.guideline__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.guideline h3 {
  margin-top: 0.65rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guideline p {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

/* Packages */
.packages {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
}

.packages__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.packages__row > div {
  padding: 1.35rem 0.9rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink);
  display: grid;
  place-items: center;
  min-height: 88px;
}

.packages__row > div:last-child {
  border-right: 0;
}

.packages__row:last-child > div {
  border-bottom: 0;
}

.pkg-head {
  background: #c8c8c8;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  min-height: 64px !important;
}

.pkg-head--accent {
  background: var(--red);
}

.packages__note {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Ecosystem */
.eco-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}

.eco-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #d7d7d5;
}

.eco-item h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.eco-item p {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 1.35rem;
}

.spark {
  color: var(--red);
  font-size: 0.85rem;
}

/* Payments */
.pay-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pay-card {
  margin: 0;
}

.pay-card figcaption {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pay-card__logo {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pay-card:hover .pay-card__logo {
  border-color: #c9c9c7;
  transform: translateY(-3px);
}

.pay-card__logo img {
  width: min(100%, 160px);
  max-height: 96px;
  object-fit: contain;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.contact__work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  background: #111;
}

.contact__work img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.contact__panel {
  background: #ff0000;
  color: #0d1f14;
  display: flex;
  align-items: center;
  padding: 4rem 2.5rem;
}

.contact__inner {
  width: min(100%, 34rem);
}

.contact__inner h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.contact__cta {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: opacity 0.2s ease;
}

.contact__cta:hover {
  opacity: 0.75;
}

.contact__block {
  padding: 1.15rem 0;
  border-top: 1px solid rgba(13, 31, 20, 0.35);
}

.contact__block h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact__block .spark {
  color: inherit;
}

.contact__block a {
  display: block;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.contact__block a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

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

.team-grid .reveal:nth-child(2),
.flow-grid .reveal:nth-child(2),
.pay-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.team-grid .reveal:nth-child(3),
.flow-grid .reveal:nth-child(3),
.pay-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.flow-grid .reveal:nth-child(4),
.pay-grid .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.flow-grid .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.flow-grid .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 980px) {
  .team-grid,
  .flow-grid,
  .guidelines,
  .pay-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guideline {
    min-height: 240px;
    padding: 1.25rem;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
  }

  .packages {
    overflow-x: auto;
  }

  .packages__row {
    min-width: 760px;
  }

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

  .contact__work {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .site-nav__links a:not(.site-nav__cta) {
    display: none;
  }

  .team-grid,
  .flow-grid,
  .guidelines,
  .pay-grid,
  .eco-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 5.5rem 1.1rem 2.5rem;
  }

  .process__arrow {
    display: none;
  }

  .process {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .process__step {
    min-width: 0;
  }

  .contact__panel {
    padding: 3rem 1.25rem;
  }

  .hero__title {
    max-width: none;
  }
}

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

  .hero__logo,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
