:root {
  /* keep the dark + crimson palette */
  --bg: #0b0c10;
  --bg-alt: #12141b;
  --text: #f3f4f6;
  --muted: #9aa0b2;
  --accent: #b02a37;
  --accent-soft: rgba(176, 42, 55, 0.14);
  --panel: rgba(255, 255, 255, 0.03);
  --border: rgba(148, 163, 184, 0.2);
  --font-main: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 18% 18%, rgba(176, 42, 55, 0.12), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(176, 42, 55, 0.14), transparent 30%),
    radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.03), transparent 35%),
    #0b0c10;
  color: var(--text);
  overflow-x: hidden;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.lede {
  max-width: 34rem;
  margin-bottom: 1.25rem;
}

.accent-dot {
  color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0 1.25rem;
}

.stat {
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  background: var(--panel);
  border: 1px solid rgba(176, 42, 55, 0.25);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-heading {
  display: block;
}

.hero-inline-visual {
  display: none;
}

.portrait-img {
  width: 70%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: 1.6rem;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 2px solid rgba(176, 42, 55, 0.35);
  z-index: 0;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 560px;
  height: 380px;
  animation: spin 16s linear infinite;
}

.orbit-2 {
  width: 740px;
  height: 480px;
  animation: spin 22s linear infinite reverse;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.primary-btn {
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.24), rgba(193, 18, 31, 0.12));
  color: var(--text);
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 45px rgba(193, 18, 31, 0.3);
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.3), rgba(193, 18, 31, 0.2));
}

.primary-btn.ghost {
  background: transparent;
  border-color: rgba(176, 42, 55, 0.5);
}

.secondary-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(193, 18, 31, 0.08);
  color: var(--text);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: fit-content;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.secondary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 45px rgba(193, 18, 31, 0.25);
  background: rgba(193, 18, 31, 0.14);
}

.text-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.text-link:hover {
  color: #fef2f2;
}

.section {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(140deg, rgba(21, 24, 33, 0.92), rgba(18, 20, 27, 0.6));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section p,
.section li {
  color: var(--muted);
  line-height: 1.6;
}

.section ul {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
}

.section li {
  display: inline-flex;
  align-items: center;
}

.section li + li::before {
  content: "|";
  color: var(--muted);
  margin-right: 0.5rem;
}

.socials-header {
  margin-top: 0.5rem;
}

.socials-header ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
}

.socials-header li {
  display: inline-flex;
  align-items: center;
}

.socials-header li + li::before {
  content: "|";
  color: var(--muted);
  margin-right: 0.5rem;
}

.socials-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  min-height: 42px;
  text-decoration: none;
  color: var(--text);
}

.gallery {
  display: grid;
  gap: 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.gallery .section-header {
  max-width: 900px;
}

.gallery .section-header .lede {
  margin-top: 0.35rem;
}

.gallery-groups {
  display: grid;
  gap: 1rem;
}

.gallery-group {
  display: grid;
  gap: 0.9rem;
}

.gallery-group.card {
  padding: 1rem;
}

.gallery-carousel {
  position: relative;
  display: block;
  width: min(100%, 720px);
  margin: 0 auto;
}

.gallery-carousel[hidden] {
  display: none !important;
}

.group-header {
  display: block;
}

.accordion-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  padding: 0.3rem 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  text-align: center;
}

.accordion-toggle:focus-visible {
  outline: 2px solid rgba(176, 42, 55, 0.6);
  outline-offset: 2px;
}

.group-header h3 {
  margin: 0;
}

.pill-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chevron {
  display: inline-block;
  transition: none;
}

.gallery-group.open .chevron {
  transform: none;
}

.games-panel {
  padding: 0.2rem 0;
}

.games-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.5rem 0;
}

.game-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 42, 55, 0.55);
  background: rgba(176, 42, 55, 0.2);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.game-chip:hover {
  background: rgba(176, 42, 55, 0.34);
  color: var(--text);
}

.gallery-grid {
  position: relative;
}

.gallery-tile {
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-tile.gallery-slide {
  display: none;
}

.gallery-tile.gallery-slide.active {
  display: flex;
}

.gallery-tile img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: 380px;
  border-radius: 1rem;
  border: none;
  box-shadow: none;
}

.gallery-tile figcaption {
  padding: 0.75rem 0.9rem 0.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

.carousel-btn:active {
  background: rgba(176, 42, 55, 0.7);
  border-color: rgba(176, 42, 55, 0.85);
}

.carousel-btn:focus {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-btn:hover {
    background: rgba(176, 42, 55, 0.7);
    border-color: rgba(176, 42, 55, 0.85);
  }
}

@media (hover: none) and (pointer: coarse) {
  .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: var(--border);
  }
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(176, 42, 55, 0.6);
  background: rgba(176, 42, 55, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-dot.active {
  background: rgba(176, 42, 55, 0.9);
  border-color: rgba(176, 42, 55, 0.9);
  transform: scale(1.1);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
}

.card.mini {
  text-align: left;
}

.services .section-header,
.work .section-header {
  margin-bottom: 1.2rem;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.service-card h3,
.work-card h3 {
  margin-bottom: 0.4rem;
}

.service-card p,
.work-card p {
  color: var(--muted);
  line-height: 1.5;
}

.featured {
  background: linear-gradient(145deg, rgba(176, 42, 55, 0.2), rgba(255, 255, 255, 0.03));
  border-color: rgba(176, 42, 55, 0.5);
}

.pill {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(176, 42, 55, 0.2);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact {
  text-align: center;
}

.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-decoration-color: rgba(193, 18, 31, 0.8);
  border-bottom: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: #fef2f2;
  text-decoration-color: rgba(193, 18, 31, 1);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .page {
    padding: 1.5rem 0.9rem 2.4rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 0 1.25rem;
    gap: 1.25rem;
  }

  .hero-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.6rem;
  }

  .hero-copy {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 8vw, 2.9rem);
  }

  .hero p {
    max-width: 32rem;
  }

  .lede {
    margin-bottom: 0.3rem;
  }

  .hero-stats {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
  }

  .stat {
    text-align: center;
  }

  .hero-visual {
    min-height: 260px;
  }

  .orbit {
    display: none;
  }

  .portrait-img {
    width: 72%;
    max-width: 240px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  }

  .hero-inline-visual {
    display: grid;
    place-items: center;
    margin: 0;
  }

  .hero-visual {
    display: none;
  }

  .gallery {
    gap: 1.1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .gallery .section-header {
    text-align: left;
    padding: 0;
  }

  .gallery-groups {
    gap: 0.75rem;
  }

  .gallery-group {
    gap: 0.55rem;
  }

  .gallery-group.card {
    padding: 0.9rem;
  }

  .card {
    padding: 0.95rem 0.9rem;
  }

  .accordion-toggle {
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.75rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
  }

  .gallery-group .accordion-toggle {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.4rem 0.2rem;
  }

  .pill-row {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    justify-content: space-between;
    width: 100%;
  }

  .pill {
    font-size: 0.9rem;
    padding: 0.32rem 0.85rem;
    background: rgba(176, 42, 55, 0.26);
  }

  .gallery-carousel {
    width: 100%;
    padding: 0.35rem 0 0.2rem;
  }

  .gallery-grid {
    width: 100%;
    max-width: none;
  }

  .gallery-tile img {
    width: 100%;
    max-height: 260px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    top: 46%;
  }

  .carousel-btn.prev {
    left: 0.25rem;
  }

  .carousel-btn.next {
    right: 0.25rem;
  }

  .carousel-dots {
    gap: 0.4rem;
    margin-top: 0.3rem;
  }

  .footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 1.25rem 0.85rem 2.2rem;
  }

  .hero {
    gap: 1.35rem;
  }

  .hero-copy {
    padding: 0.25rem 0.35rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .stat {
    padding: 0.75rem 0.65rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .socials-header ul {
    width: auto;
    justify-content: center;
    gap: 0.35rem 0.9rem;
    display: flex;
    flex-wrap: wrap;
  }

  .socials-header li + li::before {
    display: inline-block;
    content: "|";
    color: var(--muted);
    margin-right: 0.5rem;
  }

  .socials-header li {
    width: auto;
  }

  .socials-header a {
    width: auto;
    padding: 0.3rem 0.4rem;
    border: none;
    background: transparent;
    text-decoration: underline;
  }

  .gallery-carousel {
    padding: 0.25rem 0.15rem 1.4rem;
  }

  .gallery-tile {
    border-radius: 1rem;
    overflow: hidden;
  }

  .gallery-tile img {
    width: 100%;
    height: 320px;
    max-height: none;
    object-fit: contain;
    border-radius: inherit;
  }

  .gallery-tile figcaption {
    min-height: 2.6em;
    text-align: center;
  }

  .carousel-btn {
    width: 46px;
    height: 46px;
    top: 160px;
    bottom: auto;
    transform: translateY(-50%);
  }

  .carousel-btn.prev {
    left: 0.65rem;
  }

  .carousel-btn.next {
    right: 0.65rem;
  }

  .carousel-dots {
    margin-top: 0.55rem;
  }
}
