@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

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

/* ── THEMES ── */
:root {
  --bg: #0f0b08;
  --surface: #1a1208;
  --card: #221609;
  --border: #3a2210;
  --amber: #d48a2a;
  --gold: #f0c060;
  --text: #f0e0c8;
  --muted: #9a7858;
  --pixel: #7ecf6e;
  --nav-bg: rgba(15, 11, 8, 0.88);
  --tag-bg: rgba(255, 255, 255, 0.05);
  --shadow: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #f7f0e6;
  --surface: #efe4d2;
  --card: #e8d9c2;
  --border: #d0b898;
  --amber: #b87020;
  --gold: #9a5c10;
  --text: #2a1a08;
  --muted: #7a5838;
  --pixel: #3a8a2a;
  --nav-bg: rgba(247, 240, 230, 0.9);
  --tag-bg: rgba(0, 0, 0, 0.05);
  --shadow: rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, background 0.3s, border-color 0.3s;
}

nav.scrolled {
  padding: 10px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border-radius: 4px;
}

.nav-logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--amber);
  letter-spacing: 0.2px;
}

.nav-logo-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-links .nav-cta {
  background: var(--amber);
  color: var(--bg);
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
}

.nav-links .nav-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: var(--bg);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: rotate(20deg);
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 130px 40px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 60px);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}

/* ── MAIN HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 120px 40px 100px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212, 138, 42, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero logo */
.hero-logo {
  width: 144px;
  height: 144px;
  image-rendering: pixelated;
  border-radius: 12px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease both;
  filter: drop-shadow(0 4px 16px rgba(212, 138, 42, 0.3));
}

.hero h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
  animation: fadeUp 0.7s 0.08s ease both;
}

.hero h1 span {
  color: var(--amber);
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 44px;
  animation: fadeUp 0.7s 0.16s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s 0.24s ease both;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 24px;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-filled {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 138, 42, 0.3);
}

.btn-filled:hover {
  box-shadow: 0 8px 24px rgba(212, 138, 42, 0.4);
}

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

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ── STEAM + SCROLL (grouped, centred together) ── */
.steam-wrap {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.7s 0.5s ease both;
}

.steam-lines {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.steam {
  width: 3px;
  background: linear-gradient(to top, transparent, var(--muted), transparent);
  border-radius: 2px;
  animation: steamrise 2.8s ease-in-out infinite;
  opacity: 0.4;
}

.steam:nth-child(1) {
  height: 36px;
  animation-delay: 0s;
}

.steam:nth-child(2) {
  height: 52px;
  animation-delay: 0.5s;
}

.steam:nth-child(3) {
  height: 40px;
  animation-delay: 1s;
}

@keyframes steamrise {

  0%,
  100% {
    transform: translateY(0) scaleX(1);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-18px) scaleX(1.6);
    opacity: 0.5;
  }
}

.scroll-hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ── SECTIONS ── */
.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

h2.section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 12px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 40px;
  transition: border-color 0.3s;
}

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.team-card-role-top {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.team-card-role-top.mod {
  color: var(--pixel);
}

.team-card img {
  width: 140px;
  height: auto;
  image-rendering: pixelated;
  display: block;
  margin: 0 auto 20px;
  transition: transform 0.25s;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.team-card:hover img {
  transform: translateY(-4px) scale(1.04);
}

.team-name {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.team-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── ABOUT ── */
.about-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.about-body p+p {
  margin-top: 14px;
}

.about-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

@media(max-width:720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-links {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.contact-link:hover {
  border-color: var(--amber);
  color: var(--text);
  transform: translateX(4px);
}

.contact-link .icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, background 0.3s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.form-group textarea {
  min-height: 110px;
}

/* ── GALLERY ── */
.gallery-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.gallery-item:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gallery-placeholder span {
  font-size: 28px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  transition: border-color 0.3s;
}

.footer-brand {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--amber);
}

.footer-brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 1px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--border);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── RESPONSIVE ── */
@media(max-width:720px) {
  nav {
    padding: 14px 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .nav-links .nav-cta {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 0;
    background: none;
    color: var(--muted);
  }

  .nav-links .nav-cta {
    color: var(--amber);
  }

  .nav-links a:hover,
  .nav-links .nav-cta:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-links li:has(.theme-toggle) {
    padding: 8px 20px;
  }

  .hero {
    padding: 100px 20px 100px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 96px);
  }

  .section {
    padding: 60px 20px;
  }

  footer {
    padding: 28px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .divider {
    margin: 0 20px;
  }
}