:root {
  --bg: #111513;
  --text: #f6f8f2;
  --muted: #c3cbc4;
  --green: #87d9a7;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: geometricPrecision;
}

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

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 11vw, 132px) 0 clamp(124px, 16vw, 210px);
}

.hero,
.listing,
.team {
  text-align: center;
}

.hero {
  display: grid;
  min-height: clamp(230px, 42vh, 430px);
  align-content: center;
  justify-items: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1.75rem, 5.6vw, 4.9rem);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  white-space: nowrap;
  animation: cinematic-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.link-stage {
  display: grid;
  gap: clamp(112px, 16vw, 184px);
  margin-top: clamp(70px, 11vw, 132px);
  text-align: center;
}

h2 {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(58px, 10vw, 138px);
  margin-top: clamp(48px, 8vw, 88px);
}

.logo-link {
  display: grid;
  width: min(390px, 82vw);
  min-height: 310px;
  place-items: center;
  text-decoration: none;
  transition:
    filter 320ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: cinematic-rise 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-listing .logo-link {
  animation-delay: 140ms;
}

.partners-row .logo-link:first-child {
  animation-delay: 260ms;
}

.partners-row .logo-link:last-child {
  animation-delay: 360ms;
}

.logo-link:hover,
.logo-link:focus-visible {
  outline: none;
  transform: translateY(-10px) scale(1.02);
  filter: brightness(1.08);
}

.logo-link img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.34));
}

.oasis-link {
  width: min(360px, 78vw);
}

.oasis-link img {
  max-height: 280px;
}

.team {
  margin-top: clamp(144px, 21vw, 260px);
}

.team-grid {
  display: grid;
  gap: clamp(76px, 10vw, 124px);
  margin-top: clamp(70px, 10vw, 118px);
}

.team-member {
  display: grid;
  grid-template-columns: minmax(240px, 410px) minmax(280px, 520px);
  align-items: stretch;
  justify-content: center;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
  text-align: left;
  transform: translateY(0);
  transition:
    border-color 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  animation:
    cinematic-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both,
    card-float 7s ease-in-out 1.2s infinite;
}

.team-member:hover,
.team-member:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(-8px);
}

.team-member.reverse {
  grid-template-columns: minmax(280px, 520px) minmax(240px, 410px);
  animation-delay: 160ms, 1.6s;
}

.team-member.reverse .portrait-frame {
  order: 2;
}

.team-member.reverse .team-copy {
  order: 1;
}

.portrait-frame {
  overflow: hidden;
  min-height: 420px;
  border-radius: 8px;
  background: var(--card-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.team-member:first-child .portrait-frame img {
  object-position: center top;
}

.team-member.reverse .portrait-frame img {
  object-position: center center;
}

.team-copy {
  display: grid;
  align-content: center;
  padding: clamp(10px, 2vw, 24px) 0;
}

.role {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.55;
  text-transform: uppercase;
}

h3 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 3.75rem);
  font-weight: 900;
  line-height: 0.95;
  white-space: nowrap;
}

.team-copy p:last-child {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  font-weight: 500;
  line-height: 1.65;
}

.listing h2,
.team > h2 {
  animation: cinematic-rise 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-listing h2 {
  animation-delay: 80ms;
}

.listing:not(.product-listing) h2 {
  animation-delay: 220ms;
}

.team > h2 {
  animation-delay: 320ms;
}

@keyframes cinematic-rise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(8px);
  }

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

@keyframes card-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 30px, 1180px);
  }

  h1 {
    font-size: clamp(1.45rem, 8vw, 3.1rem);
  }

  h3 {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .team-member,
  .team-member.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team-member.reverse .portrait-frame,
  .team-member.reverse .team-copy {
    order: initial;
  }

  .portrait-frame {
    min-height: 360px;
  }

  .portrait-frame img {
    min-height: 360px;
  }

  .team-copy p:last-child {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  h3 {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .logo-link {
    width: min(300px, 88vw);
    min-height: 250px;
  }

  .logo-link img {
    max-height: 250px;
  }

  .oasis-link img {
    max-height: 220px;
  }

  .portrait-frame,
  .portrait-frame img {
    min-height: 310px;
  }
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(48px, 8vw, 88px);
  color: var(--muted);
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: end;
  padding: clamp(30px, 6vw, 66px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 8%, rgba(135, 217, 167, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.28);
  animation: cinematic-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.footer-kicker {
  margin: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-copy h2 {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--text);
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  text-align: left;
  text-transform: none;
}

.footer-copy p:last-child {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
}

.footer-card-grid {
  display: grid;
  gap: 14px;
}

.footer-card {
  display: grid;
  gap: 7px;
  padding: 18px 18px 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(17, 21, 19, 0.72);
  color: var(--text);
  text-decoration: none;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.footer-card:hover,
.footer-card:focus-visible {
  border-color: rgba(135, 217, 167, 0.42);
  background: rgba(17, 21, 19, 0.92);
  outline: none;
  transform: translateX(8px);
}

.footer-card span {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-card strong {
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1;
}

.footer-card small {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  color: rgba(195, 203, 196, 0.72);
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--text);
  outline: none;
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .footer-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-copy h2,
  .footer-copy p:last-child {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .footer-card:hover,
  .footer-card:focus-visible {
    transform: translateY(-4px);
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
