/* Six Brick Games — Game Development Consulting */

:root {
  --bg: #100c0a;
  --bg-alt: #1a1210;
  --surface: #221814;
  --surface-hover: #2c1e18;
  --border: #4a3228;
  --text: #f5ebe4;
  --text-muted: #b8a094;
  --accent: #f06a2a;
  --accent-bright: #ff8a4a;
  --accent-dim: #c44e18;
  --accent-ink: #1a0a04;
  --accent-soft: rgba(240, 106, 42, 0.14);
  --accent-glow: rgba(240, 106, 42, 0.32);
  --radius: 4px;
  --radius-lg: 6px;
  --border-strong: 2px;
  --shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
  --shadow-accent: 4px 4px 0 var(--accent-dim);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --max-width: 800px;
  --narrow: 640px;
  --space-section: clamp(4rem, 10vw, 6.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(240, 106, 42, 0.1), transparent),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #ffb07a;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* Hero */

.hero {
  padding: clamp(3.5rem, 12vw, 6rem) 0 clamp(3rem, 8vw, 4.5rem);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 1.75rem;
  background:
    linear-gradient(145deg, var(--surface-hover), var(--surface));
  border: 3px solid var(--accent);
  box-shadow:
    8px 8px 0 var(--accent-dim),
    var(--shadow);
}

.avatar--photo {
  object-fit: cover;
  padding: 0;
  background: var(--surface);
}

.avatar__initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: var(--border-strong) solid transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn__icon {
  flex-shrink: 0;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--accent-ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent-dim);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--text);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent-dim);
}

/* Sections */

.section {
  padding: var(--space-section) 0;
}

.section--alt {
  background: var(--bg-alt);
  border-block: var(--border-strong) solid var(--border);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__label::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--accent-dim);
  flex-shrink: 0;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  color: var(--text-muted);
}

/* Service cards */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: var(--border-strong) solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--accent-dim);
  border-left-color: var(--accent-bright);
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.45);
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__body {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Pricing */

.pricing-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: var(--border-strong) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pricing-card--featured {
  border-color: var(--accent);
  border-width: 3px;
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 45%),
    var(--surface);
  box-shadow: 6px 6px 0 var(--accent-dim);
}

.pricing-card__badge {
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  margin: 0;
  padding: 0.3rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--accent-dim);
}

.pricing-card__name {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.pricing-card__price {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pricing-card__unit {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card__desc {
  margin: 0 0 1rem;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pricing-card__note {
  margin: 0;
  padding-top: 1rem;
  border-top: var(--border-strong) solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card__select {
  margin-top: 1.25rem;
  width: 100%;
}

.pricing-cta {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.pricing-cta a {
  font-weight: 700;
}

/* Background / prose */

.prose p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Footer */

.footer {
  padding: 2.5rem 0 3rem;
  border-top: var(--border-strong) solid var(--border);
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.footer__links a:hover {
  color: var(--accent-bright);
}

.footer__copy {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.75;
}

/* Entrance motion */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__inner > * {
  animation: fade-up 0.6s ease both;
}

.hero__inner > :nth-child(1) { animation-delay: 0.05s; }
.hero__inner > :nth-child(2) { animation-delay: 0.12s; }
.hero__inner > :nth-child(3) { animation-delay: 0.18s; }
.hero__inner > :nth-child(4) { animation-delay: 0.24s; }
.hero__inner > :nth-child(5) { animation-delay: 0.3s; }

.section {
  animation: fade-up 0.55s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 20%;
}

@supports not (animation-timeline: view()) {
  .section {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__inner > *,
  .section {
    animation: none;
  }

  .btn--primary:hover,
  .btn--ghost:hover,
  .card:hover {
    transform: none;
  }
}
