/* Devils Club — indie studio landing */

:root {
  --bg: #08080a;
  --bg-elevated: #111114;
  --bg-card: #16161a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #edeae5;
  --text-muted: #8a8884;
  --accent: #990f15;
  --accent-hover: #b8141c;
  --accent-dim: rgba(153, 15, 21, 0.18);
  --glow: rgba(153, 15, 21, 0.38);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --container: min(1120px, 92vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(8, 8, 10, 0.95), transparent);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: auto;
  height: 2.75rem;
  flex-shrink: 0;
}

.logo-wordmark {
  width: auto;
  height: 2rem;
  flex-shrink: 0;
}

.nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(28, 28, 32, 0.95) 0%, rgba(18, 18, 22, 0.88) 100%);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 10px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.25s,
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s,
    transform 0.2s var(--ease);
}

.lang-dropdown-btn:hover,
.lang-dropdown-btn:focus-visible {
  border-color: rgba(153, 15, 21, 0.55);
  background:
    linear-gradient(180deg, rgba(34, 28, 30, 0.98) 0%, rgba(20, 18, 20, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(153, 15, 21, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.lang-dropdown.is-open .lang-dropdown-btn {
  border-color: rgba(153, 15, 21, 0.75);
  background: linear-gradient(180deg, rgba(36, 24, 26, 0.98) 0%, rgba(20, 16, 18, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(153, 15, 21, 0.25),
    0 6px 20px rgba(153, 15, 21, 0.18);
}

.lang-dropdown-flag,
.lang-dropdown-option-flag {
  flex-shrink: 0;
  width: 1.15rem;
  height: 0.85rem;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 1px 3px rgba(0, 0, 0, 0.28);
  background-size: cover;
  line-height: 1;
}

.lang-dropdown-code {
  min-width: 1.35rem;
  text-align: center;
}

.lang-dropdown-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.7;
  transition: transform 0.28s var(--ease), color 0.25s, opacity 0.25s;
}

.lang-dropdown.is-open .lang-dropdown-chevron {
  transform: rotate(180deg);
  color: #e8a0a4;
  opacity: 1;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 120;
  min-width: 12.5rem;
  max-height: min(22rem, 60vh);
  margin: 0;
  padding: 0.45rem 0.25rem 0.45rem 0.45rem;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(153, 15, 21, 0.55) transparent;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background:
    linear-gradient(165deg, rgba(24, 24, 28, 0.98) 0%, rgba(14, 14, 17, 0.97) 100%);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-origin: top right;
  animation: lang-menu-in 0.24s var(--ease) both;
}

.lang-dropdown-menu::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 2px;
  margin: -0.1rem 0.35rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, #e8a0a4 65%, transparent);
  opacity: 0.85;
}

.lang-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.lang-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
  margin: 0.5rem 0;
}

.lang-dropdown-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(153, 15, 21, 0.35), rgba(153, 15, 21, 0.65));
  border-radius: 999px;
}

.lang-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(153, 15, 21, 0.65), var(--accent));
}

@keyframes lang-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-dropdown-menu[hidden] {
  display: none;
}

.lang-dropdown-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.58rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-align: left;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s var(--ease),
    padding-left 0.18s;
}

.lang-dropdown-option:hover,
.lang-dropdown-option:focus-visible {
  background: rgba(153, 15, 21, 0.1);
  color: var(--text);
  outline: none;
  transform: translateX(2px);
}

.lang-dropdown-option[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(153, 15, 21, 0.22) 0%, rgba(153, 15, 21, 0.08) 100%);
  color: var(--text);
  padding-left: 0.85rem;
  box-shadow: inset 2px 0 0 var(--accent);
}

.lang-dropdown-option[aria-selected="true"]::after {
  content: "";
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.65rem;
  margin-left: auto;
  border-right: 1.5px solid #e8a0a4;
  border-bottom: 1.5px solid #e8a0a4;
  transform: rotate(45deg) translateY(-1px);
}

.lang-dropdown-option-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e8a0a4;
  background: rgba(153, 15, 21, 0.14);
  border: 1px solid rgba(153, 15, 21, 0.22);
}

.lang-dropdown-option[aria-selected="true"] .lang-dropdown-option-code {
  color: var(--text);
  background: rgba(153, 15, 21, 0.35);
  border-color: rgba(153, 15, 21, 0.5);
}

.lang-dropdown-option-name {
  flex: 1;
  line-height: 1.2;
}

.lang-dropdown--mobile {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.lang-dropdown--mobile .lang-dropdown-btn {
  width: 100%;
  justify-content: center;
  border-radius: 10px;
}

.lang-dropdown--mobile .lang-dropdown-menu {
  left: 0;
  right: 0;
  min-width: 0;
  transform-origin: top center;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 2rem;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.8rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) clamp(1.25rem, 4vw, 2.5rem) 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.hero-glow--1 {
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  top: -10%;
  right: -15%;
  background: var(--glow);
}

.hero-glow--2 {
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  bottom: 10%;
  left: -10%;
  background: rgba(80, 20, 30, 0.4);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  opacity: 0.4;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.hero-accent {
  color: var(--accent);
  display: inline-block;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: 1;
}

.section-desc {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0;
}

.section-header {
  margin-bottom: 3rem;
}

/* Products */
.product-line {
  margin-bottom: 3.5rem;
}

.product-line:last-child {
  margin-bottom: 0;
}

.product-line-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.product-line-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.product-line-desc {
  color: var(--text-muted);
  margin: 0;
  max-width: 40rem;
  font-size: 0.95rem;
}

.product-note {
  margin: -1rem 0 2.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent-dim);
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 34rem;
  line-height: 1.55;
}

/* Games */
.games {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
}

.game-card {
  display: grid;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.game-card:hover {
  border-color: rgba(153, 15, 21, 0.35);
}

.game-card--featured {
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .game-card--featured {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    min-height: clamp(22rem, 32vw, 25rem);
  }

  .game-card--featured .game-card-media {
    aspect-ratio: unset;
    height: 100%;
    min-height: 0;
  }

  .game-card--featured .game-cover,
  .game-card--featured .game-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.game-card-media .game-placeholder {
  position: absolute;
  inset: 0;
}

.game-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  overflow: hidden;
}

.game-card-media--sm {
  aspect-ratio: 16 / 9;
  min-height: 160px;
}

.game-card-media--raizes {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.game-card-media--raizes .game-cover {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 900px) {
  .game-card--featured .game-card-media--raizes .game-cover {
    position: static;
    inset: unset;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

.game-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.game-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, #1a0a0e 0%, #2d1218 40%, #0d0d10 100%),
    radial-gradient(ellipse at 70% 30%, var(--accent-dim), transparent 60%);
}

.game-placeholder--alt {
  background:
    linear-gradient(160deg, #0e1218 0%, #1a2430 50%, #0a0a0c 100%),
    radial-gradient(ellipse at 30% 70%, rgba(60, 80, 120, 0.2), transparent);
}

.game-placeholder--alt2 {
  background:
    linear-gradient(200deg, #12100a 0%, #1e1a12 50%, #08080a 100%),
    radial-gradient(ellipse at 50% 50%, rgba(180, 140, 60, 0.12), transparent);
}

.game-placeholder-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.game-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
}

.game-status--available {
  background: #1a3328;
  color: #9fd4b8;
}

.game-status--proto {
  background: #3b3b44;
}

.game-status--rd {
  background: #2a2a32;
  color: var(--text-muted);
}

.game-card-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-card--featured .game-card-body {
  justify-content: flex-start;
}

@media (min-width: 900px) {
  .game-card--featured .game-title {
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.15;
  }
}

.game-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.game-genre {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}

.game-desc {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  flex: 1;
}

.game-card--featured .game-desc {
  flex: 0 1 auto;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-top: auto;
}

.games-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .games-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .games-grid .game-card--compact {
    height: 100%;
  }
}

.game-card--compact .game-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.game-card--compact .game-title {
  font-size: 1.5rem;
}

.game-card--compact .game-desc {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.game-card--compact .game-desc--pending {
  margin-bottom: 0;
}

.game-desc--pending {
  font-style: italic;
  opacity: 0.75;
}

/* About */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.about-frame {
  aspect-ratio: 4 / 5;
  max-height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.about-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-dim), transparent 70%);
}

.about-stat {
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--accent);
}

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

.about-copy p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.about-values {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-values li {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-values strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

/* Team */
.team {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 560px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 560px) and (max-width: 959px) {
  .team-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 20rem);
    justify-self: center;
  }
}

@media (min-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .team-card {
    grid-column: span 2;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.75rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.team-card:hover {
  border-color: rgba(153, 15, 21, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.team-avatar {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, var(--accent-dim), transparent 65%),
    var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.team-avatar--photo {
  position: relative;
  display: block;
  padding: 0;
  background: var(--bg);
}

.team-avatar--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}

.team-alias {
  display: block;
  font-size: 0.85em;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  line-height: 1.1;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 22rem;
}

/* Reach — contact & press */
.reach {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 40%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.reach-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .reach-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.reach-panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.reach-panel--press {
  border-color: rgba(153, 15, 21, 0.22);
  background:
    linear-gradient(145deg, rgba(153, 15, 21, 0.07) 0%, transparent 55%),
    var(--bg-card);
}

.reach-panel-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  line-height: 1;
}

.reach-panel-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.contact-cards {
  display: grid;
  gap: 1rem;
  flex: 1;
}

.contact-card {
  padding: 1.15rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.25s;
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.contact-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.contact-email {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--accent);
}

.press-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.press-includes li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.press-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.press-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 700px) {
  .footer-inner {
    position: relative;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 2.5rem;
  }

  .logo--footer {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

.logo--footer .logo-icon {
  height: 2.25rem;
}

.logo--footer .logo-wordmark {
  height: 1.65rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll {
    animation: none;
  }

  .lang-dropdown-menu {
    animation: none;
  }

  .lang-dropdown-btn:hover,
  .lang-dropdown-option:hover {
    transform: none;
  }
}
