@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --red: #DF0C00;
  --red-dark: #B80A00;
  --ink: #0D0D0D;
  --body: #3A3A38;
  --muted: #76756F;
  --line: #E4E2DD;
  --band: #F5F4F0;
  --bg: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand img { display: block; }
.brand-small { font-size: 18px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-link { text-decoration: none; color: var(--body); }
.nav-link:hover { color: var(--red); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 4px; white-space: nowrap;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #333; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link:hover { color: var(--red); border-color: var(--red); }

/* Hero */
.hero .wrap { padding-top: 56px; padding-bottom: 88px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 4px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22A04B; }
h1 {
  margin: 28px 0 0; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(52px, 10.5vw, 148px); line-height: 0.95; letter-spacing: -0.045em;
}
h1 span { display: block; }
.l2 { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.l3 { color: var(--red); }
.hero-foot { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: minmax(0, 520px) 1fr; } .actions { justify-self: end; } }
.lead { margin: 0; font-size: 19px; color: var(--body); max-width: 40ch; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Sections */
.section .wrap { padding-top: 96px; padding-bottom: 96px; }
.section + .section .wrap { border-top: 1px solid var(--line); }
.band { background: var(--band); }
.band .wrap, .contact .wrap { border-top: 0 !important; }
h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }

.services { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 1px solid var(--ink); }
.service { padding: 28px 28px 32px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.num { margin: 0 0 18px; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--red); font-size: 15px; }
.service p { margin: 10px 0 0; color: var(--body); }
.service .tags { margin-top: 18px; font-size: 14px; color: var(--muted); }

.rules { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 40px; }
.rules li { border-top: 2px solid var(--red); padding-top: 18px; }
.rules p { margin: 8px 0 0; color: var(--body); }
.small-start { margin: 48px 0 0; max-width: 60ch; color: var(--body); }

.contact .lead { margin-top: 16px; }
.btn-big { margin-top: 32px; font-size: clamp(17px, 2.4vw, 22px); padding: 18px 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.foot p { margin: 0; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--red); }

/* Legal page */
.legal { max-width: 720px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: 44px; letter-spacing: -0.03em; }
.legal h2 { font-size: 22px; margin-top: 36px; letter-spacing: -0.01em; }
.legal p { color: var(--body); }

/* Small screens */
@media (max-width: 720px) {
  .nav .nav-link { display: none; }
  .hero .wrap { padding-top: 36px; padding-bottom: 64px; }
  .l2 { -webkit-text-stroke-width: 1.5px; }
  .section .wrap { padding-top: 64px; padding-bottom: 64px; }
  .service, .service + .service { padding: 24px 0 28px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}
/* Motion (CSS only) */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,160,75,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,160,75,0); } 100% { box-shadow: 0 0 0 0 rgba(34,160,75,0); } }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(calc(-100% / 6)); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }

.r0 { animation: fade .6s ease-out both; }
.r1 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .05s both; }
.r2 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .18s both; }
.r3 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .31s both; }
.r4 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .5s both; }
.dot { animation: pulse 2s ease-out infinite; }

.l2 { transition: color .5s ease; }
h1:hover .l2 { color: var(--ink); }

.brand:hover img { animation: bob .8s ease-in-out; }

.arr { display: inline-block; margin-left: 4px; transition: transform .25s ease; }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn { transition: background-color .2s ease, transform .2s ease; }
.btn:active { transform: translateY(1px); }

.marquee { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--ink); color: #fff; }
.marquee-track { display: flex; width: max-content; padding: 16px 0; animation: slide 38s linear infinite; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.marquee-track > * { margin: 0 14px; }
.marquee-track i { font-style: normal; color: var(--red); font-size: 12px; align-self: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.service { position: relative; transition: background-color .3s ease; }
.service::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.service:hover::before { transform: scaleX(1); }
.num { display: inline-block; transition: transform .3s ease; }
.service:hover .num { transform: translateX(6px); }

.rules li { transition: transform .3s ease; }
.rules li:hover { transform: translateY(-4px); }

/* Reveal on scroll where the browser supports scroll-driven animation; otherwise content is simply visible */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}

@media (max-width: 720px) {
  .marquee-track { font-size: 16px; padding: 13px 0; animation-duration: 28s; }
  .marquee-track > * { margin: 0 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
