/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Roboto Slab', 'Georgia', 'Times New Roman', Times, serif;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap {
  max-width: 1200px;
  padding: 40px 80px;
}

/* Header */
.site-header .title {
  font-size: 72px;
  margin-bottom: 6px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 700ms cubic-bezier(.22,.9,.32,1) both;
}
.brand {
  color: #e84a4a; /* red accent */
  display: inline;
}
.sub {
  font-size: 18px;
  color: #ddd;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 700ms cubic-bezier(.22,.9,.32,1) both;
  animation-delay: 140ms;
}

/* Links (staggered entrance) */
.links ul { list-style: none; }
.links li { margin: 18px 0; opacity: 0; transform: translateX(-18px); }
.links a {
  color: #fff;
  text-decoration: none;
  font-size: 54px;
  transition: color .15s ease, transform .12s ease;
  display: inline-block;
}
.links a:hover { color: #e84a4a; transform: translateX(8px) scale(1.02); }

/* When body has .ready, animate links with a stagger */
body.ready .links li {
  animation: linkIn 520ms cubic-bezier(.22,.9,.32,1) both;
}
body.ready .links li:nth-child(1) { animation-delay: 240ms; }
body.ready .links li:nth-child(2) { animation-delay: 320ms; }
body.ready .links li:nth-child(3) { animation-delay: 400ms; }
body.ready .links li:nth-child(4) { animation-delay: 480ms; }

/* Content overlay / mini-section animations */
.content {
  margin-top: 24px;
  padding-top: 12px;
  will-change: opacity, transform;
}
.content.hidden { display: none; }
.content.enter {
  display: block; /* ensure visible */
  animation: contentIn 360ms cubic-bezier(.22,.9,.32,1) both;
}
.content.leave {
  animation: contentOut 260ms ease both;
}

.hidden { display: none; }
.back {
  background: transparent;
  border: none;
  color: #ddd;
  font-size: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform .12s ease, color .12s ease;
}
.back:hover { transform: translateX(-6px); color: #fff; }
#section-title {
  font-size: 48px;
  margin-bottom: 12px;
}
.section-body {
  font-size: 22px;
  color: #eee;
  max-width: 900px;
}

/* subtle footer */
.site-footer {
  position: fixed;
  right: 28px;
  bottom: 18px;
  text-align: right;
  color: #ddd;
  font-size: 14px;
  opacity: 0.9;
  transition: transform .18s ease, opacity .2s ease;
}
.site-footer:hover { transform: translateY(-4px); opacity: 1; }
.footer-links { margin-top: 8px; color: #fff; }

/* Typographic micro-interactions */
.links a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  background: #e84a4a;
  margin-left: 12px;
  vertical-align: middle;
  transition: width 220ms cubic-bezier(.2,.8,.2,1);
}
.links a:hover::after { width: 28px; }

/* Header hide/show for submenu */
.site-header {
  transition: opacity 260ms cubic-bezier(.22,.9,.32,1), transform 260ms cubic-bezier(.22,.9,.32,1);
  will-change: opacity, transform;
}
.site-header.hidden-header {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-card {
  background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0.65));
  border-radius: 12px;
  overflow: hidden;
  padding: 22px 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.team-card .media {
  background: linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.48)), #000;
  height: 86px;
  border-radius: 8px;
  display:block;
  width: 100%;
  background-size: cover;
  background-position: center center;
  position: relative;
}
.team-card .name {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.02;
}
.team-card .meta {
  color: #ddd;
  font-size: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.team-card .meta .pronoun { opacity: 0.9; }
.team-card .meta .dot { opacity: 0.6; }
.team-card .quote {
  margin-top: 6px;
  color: rgba(255,255,255,0.92);
  font-style: italic;
  font-size: 18px;
}
.team-card .header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-card .flag {
  width: 56px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.08);
}

/* slight hover lift */
.team-card:hover { transform: translateY(-6px); transition: transform 220ms ease; }

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes linkIn {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes contentIn {
  from { opacity: 0; transform: translateY(16px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes contentOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(.995); }
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .wrap { padding: 20px; }
  .site-header .title { font-size: 44px; }
  .links a { font-size: 34px; }
  #section-title { font-size: 32px; }
}
@media (max-width: 700px) {
  .team-card .flag { width: 48px; height: 30px; }
}
