:root {
  --bg: #0b0b0d;
  --bg-soft: #17171b;
  --panel: #121316;
  --panel-2: #1b1d20;
  --text: #f5f5f5;
  --muted: #b8b8bd;
  --line: rgba(255,255,255,0.08);
  --red: #d90f18;
  --red-2: #ff3b46;
  --red-3: #f1454a;
  --shadow: 0 24px 60px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: clip;
  background: radial-gradient(circle at top left, rgba(150, 0, 0, 0.26), transparent 25%),
              linear-gradient(180deg, #150b0b 0%, #09090a 22%, #0b0b0d 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
  scroll-margin-top: 82px;
}

.section-header {
  margin-bottom: 54px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 18px;
  font-weight: 700;
}

h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 18px; }
h1 { font-size: clamp(2.8rem, 4vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 3vw, 3.25rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 18px; color: var(--muted); }

.red { color: var(--red-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(10,10,12,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto auto -1px 0;
  width: var(--scroll-progress, 0%);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  transition: width 0.08s linear;
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(217, 15, 24, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255,255,255,0.8);
  font-size: 0.96rem;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--red-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: 0 18px 38px rgba(217,15,24,0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: all 0.2s ease;
}

.nav-toggle span { top: 23px; }
.nav-toggle::before { top: 15px; }
.nav-toggle::after { top: 31px; }
.nav-toggle.active span { opacity: 0; }
.nav-toggle.active::before { transform: rotate(45deg); top: 23px; }
.nav-toggle.active::after { transform: rotate(-45deg); top: 23px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 88px 0 84px;
  background: radial-gradient(circle at 30% 30%, rgba(217,15,24,0.2), transparent 28%),
              linear-gradient(180deg, rgba(8,8,9,0.6), rgba(8,8,9,0.2));
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.15;
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 80%, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
}

.eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow-wrap::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 18px rgba(255,59,70,0.75);
}

.hero-copy p {
  max-width: 620px;
  font-size: 1.06rem;
}

.hero h1 {
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: var(--red-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 24px;
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-2);
}

.hero-visual {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-wrap {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 0.88;
  border-radius: 38% 38% 30px 30px;
  background: linear-gradient(160deg, rgba(255,59,70,0.28), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 18px 22px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,59,70,0.22), transparent 70%);
  filter: blur(16px);
}

.portrait-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(95%) contrast(1.08);
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.portrait-wrap:hover img { transform: scale(1.035); }

.floating-card {
  position: absolute;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(16,16,18,0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}

.floating-card strong {
  display: block;
  font-size: 1.55rem;
  color: var(--red-2);
}

.card-one { left: -8%; top: 18%; }
.card-two { right: -6%; bottom: 15%; animation-delay: 1.5s; }

.skills-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
}

.skills-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 34px;
  padding: 19px 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: marquee 32s linear infinite;
}

.skills-strip:hover .skills-track { animation-play-state: paused; }

.skills-track i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 16px rgba(255,59,70,0.7);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}

.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.badge {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.stat {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px;
}

.stat strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--red-2);
}

.mini-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.services-grid,
.portfolio-grid,
.blog-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.services-grid > :nth-child(2),
.portfolio-grid > :nth-child(2),
.testimonials-grid > :nth-child(2) { transition-delay: 100ms; }

.services-grid > :nth-child(3),
.portfolio-grid > :nth-child(3),
.testimonials-grid > :nth-child(3) { transition-delay: 200ms; }

.service-card,
.project-card,
.blog-card,
.testimonial,
.contact-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.service-card,
.project-card,
.process-card,
.testimonial {
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.service-card:hover,
.project-card:hover,
.process-card:hover,
.testimonial:hover {
  transform: translateY(-6px);
  border-color: rgba(255,59,70,0.35);
  background-color: rgba(255,255,255,0.035);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(255,59,70,0.14), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,59,70,0.22);
  color: var(--red-2);
  margin-bottom: 18px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.service-card li::before {
  content: "•";
  color: var(--red-2);
  margin-right: 8px;
}

.portfolio-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-visual {
  height: 220px;
  background: linear-gradient(135deg, rgba(255,59,70,0.06), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.project-visual--riderclub {
  display: grid;
  place-items: center;
  background: #050505;
}

.project-visual.project-visual--riderclub::before,
.project-visual.project-visual--riderclub::after {
  content: none;
}

.project-visual--riderclub img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  padding: 12px 24px 0;
}

.project-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #080809;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-gallery a:hover img,
.project-gallery a:focus-visible img { transform: scale(1.06); }

.project-gallery a:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 3px;
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.project-visual::before {
  width: 70%;
  height: 120px;
  left: 12%;
  top: 42px;
  transform: rotate(-7deg);
}

.project-visual::after {
  width: 62%;
  height: 110px;
  right: 12%;
  bottom: 24px;
  transform: rotate(10deg);
}

.project-body {
  padding: 26px 24px 24px;
}

.project-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.project-link {
  color: var(--text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.project-link:focus-visible,
.btn:focus-visible,
.nav-links a:focus-visible,
.socials a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 4px;
}

.project-link::after {
  content: "→";
  color: var(--red-2);
}

.process {
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.process-card {
  position: relative;
  padding: 28px 20px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}

.process-card .num {
  display: inline-flex;
  margin-bottom: 16px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,59,70,0.12);
  color: var(--red-2);
  font-weight: 800;
}

.testimonial {
  padding: 24px 22px;
}

.quote {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 20px;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-2), #ff8a8f);
  display: grid;
  place-items: center;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-card .image {
  height: 190px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,59,70,0.18), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.blog-meta {
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-left {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255,59,70,0.1);
  color: var(--red-2);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  padding: 15px 16px;
  resize: vertical;
}

.field textarea { min-height: 150px; }

.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.socials {
  display: inline-flex;
  gap: 12px;
  color: var(--muted);
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .services-grid,
  .portfolio-grid,
  .testimonials-grid,
  .blog-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px 22px;
    background: rgba(12,12,13,0.96);
    border: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .hero { padding-top: 72px; }
  .hero-visual { min-height: auto; }
  .portrait-wrap { width: min(82%, 500px); }
}

@media (max-width: 640px) {
  .services-grid,
  .portfolio-grid,
  .testimonials-grid,
  .blog-grid,
  .process-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .section { padding: 80px 0; }
  .brand { font-size: 0.95rem; }
  .brand img { width: 42px; height: 42px; }
  .hero { padding-top: 64px; }
  .floating-card { position: static; margin-top: 16px; }
  .hero-visual { display: grid; gap: 12px; }
  .hero h1 { font-size: clamp(2.7rem, 16vw, 4.4rem); }
  .hero-copy p { font-size: 1rem; }
  .card-one,
  .card-two {
    display: inline-block;
    margin: 14px 8px 0 0;
  }
  .skills-track { gap: 24px; font-size: 0.72rem; }
  .portfolio-header { align-items: flex-start; flex-direction: column; }
  .about-visual { min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
