/* Hero */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(60px, 9vw, 120px));
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow::before,
.hero__glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.hero__glow::before {
  width: 620px;
  height: 620px;
  top: -240px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 77, 33, 0.55), transparent 68%);
}

.hero__glow::after {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: -160px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 68%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 {
  font-size: var(--step-5);
  max-width: 16ch;
  margin-block: var(--space-md) var(--space-md);
}

.hero__desc {
  color: var(--muted);
  font-size: var(--step-1);
  max-width: 52ch;
  line-height: 1.6;
}

.hero__actions { margin-top: var(--space-lg); }

.hero__stats {
  margin-top: var(--space-2xl);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  padding-top: var(--space-lg);
}

@media (min-width: 860px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

/* Dải chữ chạy */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 22px;
  overflow: hidden;
  background: var(--bg-soft);
}

.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: jme-marquee 34s linear infinite;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  font-weight: 600;
  color: #6f6f7b;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.marquee__item::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes jme-marquee {
  to { transform: translateX(-50%); }
}

/* Dự án */
.work-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  height: 100%;
}

.work-card:hover { transform: translateY(-6px); border-color: var(--line-strong); color: inherit; }

.work-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-card__media img { transform: scale(1.06); }

.work-card__body { padding: var(--space-md); }

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.work-card h3 { font-size: var(--step-1); margin-bottom: 8px; }

.work-card__result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.work-card__result svg { width: 16px; height: 16px; }

/* Quy trình */
.process { counter-reset: step; }

.process__item {
  position: relative;
  padding: var(--space-md) 0 var(--space-md) 76px;
  border-top: 1px solid var(--line);
}

.process__item::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: var(--space-md);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.process__item h3 { font-size: var(--step-1); margin-bottom: 8px; }
.process__item p { color: var(--muted); max-width: 70ch; }

/* Nhận xét */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  position: relative;
  height: 100%;
}

.quote-card > svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  opacity: 0.65;
  margin-bottom: var(--space-sm);
}

.quote-card p { font-size: 1.05rem; color: #dedee4; }

.quote-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.quote-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  flex: none;
  overflow: hidden;
}

.quote-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-card__name { font-weight: 600; line-height: 1.3; }
.quote-card__role { color: var(--muted); font-size: 0.86rem; }

/* CTA */
.cta-band {
  position: relative;
  border-radius: clamp(20px, 3vw, 34px);
  padding: clamp(36px, 6vw, 80px);
  background: linear-gradient(130deg, #1a0d08, #12121c 55%, #1d1030);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 77, 33, 0.42), transparent 65%);
  filter: blur(90px);
}

.cta-band > * { position: relative; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.cta-band .cluster { justify-content: center; margin-top: var(--space-lg); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p { color: var(--muted); padding-bottom: 22px; max-width: 80ch; }

/* Liên hệ */
.contact-grid { display: grid; gap: var(--space-lg); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-xl); }
}

.contact-info ul { list-style: none; padding: 0; display: grid; gap: var(--space-md); }

.contact-info li { display: flex; gap: 14px; align-items: flex-start; }

.contact-info svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 4px; }

.contact-info .label { font-size: 0.82rem; color: var(--muted); display: block; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 620px) {
  .contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
}

/* Trang nội dung / bài viết */
.page-hero {
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero h1 { max-width: 20ch; }
.page-hero p { color: var(--muted); max-width: 60ch; }

.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: var(--space-lg); }
.entry-content h3 { margin-top: var(--space-md); }
.entry-content img { border-radius: var(--radius-sm); margin-block: var(--space-md); }
.entry-content blockquote {
  margin: var(--space-md) 0;
  padding: 4px 0 4px var(--space-md);
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.post-card__date { color: var(--muted); font-size: 0.85rem; }

.pagination { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-lg); }
.pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Nút gọi nhanh trên mobile */
.quick-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  gap: 10px;
}

.quick-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 77, 33, 0.4);
}

.quick-contact a svg { width: 22px; height: 22px; }
