@font-face {
  font-family: "Marvin Visions Variable";
  src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/756881/MarvinVisionsTrial-Variable.ttf");
}

:root {
  --black: rgb(0 0 0);
  --white: rgb(255 255 255);
  --yellow: rgb(255 255 255);
  --light-yellow: rgb(255 255 255 / 60%);
  --gray: rgb(167 167 167 / 30%);
  --logo-dimensions: 18rem;
  --full-w: 100%;
  --full-h: 100%;
  --marvin: "Marvin Visions Variable";
  --default-font: -apple-system, BlinkMacSystemFont, Roboto, helvetica neue, sans-serif;
  --h1-clamp: clamp(5rem, 10vw, 15rem);
  --default-font-size: 1.8rem;
  --default-heading-size: 4.5rem;
  --duration: 0.5s;
  --short-duration: 350ms;
  --gap: 0.4rem;
  --default-padding: 1.2rem;
  --z-20: 20;
  --z-30: 30;
}

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

::selection {
  -webkit-text-fill-color: var(--yellow);
  background-color: var(--gray);
  color: var(--yellow);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--black);
  font-family: var(--marvin), var(--default-font);
  font-size: 62.5%;
  text-transform: uppercase;
  text-rendering: optimizelegibility;
}

body {
  min-height: 100vh;
  color: var(--white);
}

a {
  color: var(--white);
  cursor: pointer;
  font-size: var(--default-font-size);
  text-decoration: none;
  touch-action: manipulation;
  transition: color var(--short-duration) ease-in;
}

a:hover { color: var(--yellow); }

img {
  display: block;
  max-width: var(--full-w);
  object-fit: cover;
}

/* NAV */
nav {
  background-color: var(--black);
  display: flex;
  flex-flow: row nowrap;
  padding: var(--default-padding) 2rem;
  width: var(--full-w);
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: var(--z-30);
}

.pill-list {
  display: flex;
  list-style: none;
  gap: var(--default-padding);
  align-items: center;
  margin-left: auto;
}

.pill-logo-item a { display: flex; align-items: center; padding: 0; }
.pill-logo-img { height: 5rem; width: auto; }

.pill-list li { position: relative; }

.pill-list li a {
  display: block;
  padding: 0.8em 1.4em;
  color: var(--white);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  border-bottom: 0.3rem solid transparent;
  transition: border-color var(--short-duration) ease-in, color var(--short-duration) ease-in;
}

.pill-list li a:hover {
  border-color: var(--light-yellow);
  color: var(--yellow);
}

.pill-list li a.active {
  color: var(--light-yellow);
}

/* HERO */
.hero {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: var(--h1-clamp);
  line-height: 0.9;
  margin-bottom: 2rem;
  position: relative;
  z-index: var(--z-30);
}

.hero p {
  max-width: 70rem;
  font-size: var(--default-font-size);
  opacity: 0.8;
  font-family: var(--default-font);
  text-transform: none;
  line-height: 1.6;
}

.gradient-text {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to bottom, var(--yellow), var(--light-yellow));
}

.letter {
  animation: bounce-in-fwd var(--duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  color: var(--yellow);
  display: inline-block;
  opacity: 0;
}

.letter:nth-child(1) { animation-delay: 0.35s; }
.letter:nth-child(2) { animation-delay: 0.7s; }
.letter:nth-child(3) { animation-delay: 1.05s; }
.letter:nth-child(4) { animation-delay: 1.4s; }
.letter:nth-child(5) { animation-delay: 1.75s; }
.letter:nth-child(6) { animation-delay: 2.1s; }
.letter:nth-child(7) { animation-delay: 2.45s; }
.letter:nth-child(8) { animation-delay: 2.8s; }
.letter:nth-child(9) { animation-delay: 3.15s; }
.letter:nth-child(10) { animation-delay: 3.5s; }

/* SECTIONS */
.section {
  padding: 6rem 2rem;
  max-width: 100rem;
  margin: 0 auto;
}

.section h2 {
  font-size: var(--default-heading-size);
  margin-bottom: 3rem;
  text-align: center;
}

/* PANELS / CARDS */
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 0;
}

.panel {
  animation: scale-in-ver-center var(--duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
  opacity: 0;
  position: relative;
  overflow: hidden;
  min-height: 35rem;
  display: flex;
  align-items: flex-end;
  transition: min-height 0.4s ease;
  cursor: pointer;
}

.panel-clicked {
  animation: panel-flip 0.4s ease forwards !important;
}

@keyframes panel-flip {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(90deg); }
}

.panel:hover {
  min-height: 50rem;
  box-shadow: rgba(255, 255, 255, 0.05) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

.panel:nth-of-type(1) { animation-delay: 0.5s; }
.panel:nth-of-type(2) { animation-delay: 0.85s; }
.panel:nth-of-type(3) { animation-delay: 1.2s; }
.panel:nth-of-type(4) { animation-delay: 1.55s; }

.panel img {
  position: absolute;
  inset: 0;
  width: var(--full-w);
  height: var(--full-h);
  filter: brightness(0.33);
  transition: filter var(--short-duration) ease;
}

.panel:hover img { filter: brightness(0.15); }

.panel-content {
  position: relative;
  z-index: var(--z-20);
  padding: 2rem;
  width: var(--full-w);
  background: linear-gradient(to top, rgba(0,0,0,0.95) 60%, transparent);
}

.panel-content h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  transition: color var(--short-duration) ease;
}

.panel:hover .panel-content h3 { color: var(--white); }

.panel-content p {
  font-size: 1.4rem;
  font-family: var(--default-font);
  text-transform: none;
  opacity: 0;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.panel:hover .panel-content p {
  opacity: 1;
  max-height: 30rem;
}

/* CARDS (simple version) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  padding: 3rem;
  transition: box-shadow var(--short-duration) ease;
}

.card:hover {
  box-shadow: rgba(255, 255, 255, 0.05) 0px 10px 40px;
}

.card h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  transition: color var(--short-duration) ease;
}

.card:hover h3 { color: var(--yellow); }

.card p {
  font-size: 1.5rem;
  font-family: var(--default-font);
  text-transform: none;
  opacity: 0.7;
  line-height: 1.6;
}

/* MOTTO */
.motto {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3rem;
  flex-wrap: wrap;
}

.motto div { text-align: center; }
.motto h3 { font-size: 3rem; color: var(--yellow); margin-bottom: 0.5rem; }
.motto p { font-size: 1.5rem; font-family: var(--default-font); text-transform: none; opacity: 0.7; }

/* CTA BUTTON */
.cta {
  display: inline-block;
  border: 0.2rem solid var(--light-yellow);
  color: var(--light-yellow);
  padding: var(--default-padding) 2.4rem;
  font-size: 1.6rem;
  transition: all var(--short-duration) ease;
}

.cta:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0.5rem 1.5rem rgba(255, 213, 28, 0.2);
  transform: translateY(-0.25rem);
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 50rem;
}

form input, form textarea {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 0.1rem solid rgba(255, 255, 255, 0.15);
  font-size: 1.6rem;
  color: var(--white);
  font-family: var(--default-font);
  text-transform: none;
  transition: border-color var(--short-duration) ease;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--light-yellow);
}

form input::placeholder, form textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
form textarea { resize: vertical; min-height: 14rem; }

form button {
  background: var(--yellow);
  color: var(--black);
  border: none;
  padding: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--marvin), var(--default-font);
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--short-duration) ease, box-shadow var(--short-duration) ease;
}

form button:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.5rem 1.5rem rgba(255, 213, 28, 0.3);
}

/* TEAM CARDS */
.team-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 4rem;
  flex-wrap: nowrap;
  margin-top: 4rem;
}

.team-card {
  perspective: 3000px;
}

.team-card .card-wrapper {
  width: 30rem;
  height: 42rem;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
}

.team-card .card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card .card-wrapper:hover .card {
  transform: rotateY(180deg);
}

.team-card .front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.team-card .front .card-photo-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62%;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  z-index: 1;
}

.team-card .front .card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.05) saturate(0.85);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.team-card .card-wrapper:hover .card-photo {
  transform: scale(1.04);
  filter: contrast(1.1) saturate(1);
}

/* card border glow */
.team-card .card-wrapper {
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 20px 60px rgba(0,0,0,0.6),
    0 4px 12px rgba(0,0,0,0.4);
  transition: box-shadow 0.4s ease, transform 0.15s ease;
}

.team-card .card-wrapper:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18),
    0 30px 80px rgba(0,0,0,0.8),
    0 8px 24px rgba(0,0,0,0.5),
    0 0 40px rgba(255,255,255,0.04);
}

/* static gloss streak at top */
.team-card .front::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.13) 0%,
    rgba(255,255,255,0.04) 35%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 3;
}

/* dynamic mouse-follow shine layer */
.team-card .front .card-shine {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

.team-card .card-wrapper:hover .card-shine { opacity: 1; }

/* edge rim light */
.team-card .front {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(255,255,255,0.04);
}

/* reflection strip below photo */
.team-card .front::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  height: 4rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.09), transparent);
  pointer-events: none;
  z-index: 2;
}

.team-card .front .logo-wrapper {
  margin-top: auto;
  position: relative;
  z-index: 5;
}

.team-card .front .card-name {
  font-family: var(--marvin), var(--default-font);
  font-size: 2.2rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.team-card .front .card-role {
  font-size: 1.3rem;
  font-family: var(--default-font);
  text-transform: none;
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.team-card .front .bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 5;
}

.team-card .front .bottom-wrapper .description {
  font-size: 1.4rem;
  font-family: var(--default-font);
  text-transform: none;
  opacity: 0.6;
}

.team-card .front .bottom-wrapper .qr-wrapper {
  width: 5rem;
  height: 5rem;
}

.team-card .front .bottom-wrapper .qr-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.team-card .back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: var(--white);
  display: grid;
  place-content: center;
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

/* PROJECT MODAL */
.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  display: grid;
  place-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(6px);
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-modal-inner {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 4rem;
  max-width: 70rem;
  width: 90vw;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  animation: none;
}

.project-modal.active .project-modal-inner {
  transform: scale(1);
}

.project-modal-inner h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.project-modal-inner p {
  font-size: 1.6rem;
  font-family: var(--default-font);
  text-transform: none;
  line-height: 1.8;
  opacity: 0.85;
}

.project-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color 0.2s ease;
}

.project-modal-close:hover { border-color: #fff; }

/* CONTACT LAYOUT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 120rem;
}

.contact-message {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-message p {
  font-family: 'Bebas Neue', var(--default-font);
  font-size: clamp(2.4rem, 3vw, 3.8rem);
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.03em;
}

.contact-red {
  color: #e63030;
}

/* QUOTE */
.quote-section {
  padding: 10rem 2rem;
  text-align: center;
}

.quote-section blockquote {
  font-family: var(--marvin), var(--default-font);
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 900;
  line-height: 1.2;
  max-width: 90rem;
  margin: 0 auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-image: linear-gradient(to right, var(--white), rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* FOOTER */
footer {
  color: rgba(255, 255, 255, 0.7);
  padding: 6rem 2rem 2rem;
  margin-top: 4rem;
  font-family: var(--default-font);
  text-transform: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
  max-width: 100rem;
  margin: 0 auto 4rem;
}

.footer-col h4 {
  font-family: var(--marvin), var(--default-font);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 1.4rem;
  line-height: 1.6;
  opacity: 0.7;
}

.footer-col .footer-logo {
  height: 4rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.footer-socials a svg {
  width: 2rem;
  height: 2rem;
  fill: var(--white);
  opacity: 0.7;
  transition: opacity var(--short-duration) ease;
}

.footer-socials a:hover svg { opacity: 1; }

.footer-socials .irsal-icon {
  width: 2rem;
  height: 2rem;
  opacity: 0.7;
  transition: opacity var(--short-duration) ease;
  object-fit: contain;
  display: block;
}

.footer-socials a:hover .irsal-icon { opacity: 1; }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity var(--short-duration) ease;
}

.footer-links a:hover { opacity: 1; }

.footer-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2.4rem;
  background: var(--white);
  color: var(--black);
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--marvin), var(--default-font);
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--short-duration) ease, box-shadow var(--short-duration) ease;
}

.footer-cta:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.5rem 1.5rem rgba(255, 255, 255, 0.15);
  color: var(--black);
}

.footer-bottom {
  text-align: center;
  font-size: 1.3rem;
  opacity: 0.4;
}

/* ANIMATIONS */
@keyframes scale-in-ver-center {
  0% { transform: scaleY(0); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes bounce-in-fwd {
  0% { transform: scale(0); opacity: 0; }
  38% { transform: scale(1); opacity: 1; }
  55% { transform: scale(0.7); }
  72% { transform: scale(1); }
  81% { transform: scale(0.84); }
  89% { transform: scale(1); }
  95% { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slide-in-top {
  0% { transform: translateY(-100rem); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none; animation: none; }
}

/* ── MOBILE NAV ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 4rem;
  height: 4rem;
  border-radius: 8px;
  font-size: 2.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── BREAKPOINT: tablet and below ── */
@media (max-width: 768px) {

  /* NAV */
  nav {
    justify-content: space-between;
    padding: 1.2rem 1.6rem;
  }

  .nav-toggle { display: flex; }

  .pill-list {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #000;
    flex-direction: column;
    align-items: flex-start;
    padding: 7rem 2rem 3rem;
    gap: 0.4rem;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 25;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .pill-list.open { transform: translateY(0); }

  .pill-logo-item { display: none; }

  .pill-list li a { font-size: 2rem; padding: 1rem 0; }

  /* HERO */
  .hero { padding: 5rem 1.6rem; }
  .hero h1 { font-size: clamp(3.5rem, 12vw, 8rem); }
  .hero p { font-size: 1.5rem; }

  /* MOTTO */
  .motto { gap: 2.4rem; padding: 2rem 1.6rem; }
  .motto h3 { font-size: 2.2rem; }

  /* SECTIONS */
  .section { padding: 4rem 1.6rem; }
  .section h2 { font-size: 3rem; }

  /* CARDS */
  .cards { grid-template-columns: 1fr; gap: 1.6rem; }

  /* PANELS */
  .panels { grid-template-columns: 1fr; }
  .panel { min-height: 28rem; }
  .panel:hover { min-height: 38rem; }
  .panel-content h3 { font-size: 2rem; }

  /* TEAM CARDS */
  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
  }

  .team-card .card-wrapper {
    width: min(30rem, 90vw);
    height: 40rem;
  }

  .team-card .front .bottom-wrapper .qr-wrapper {
    width: 7rem;
    height: 7rem;
  }

  /* CONTACT */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    max-width: 100%;
  }

  form { max-width: 100%; }

  .contact-message p { font-size: clamp(2rem, 5vw, 3rem); }

  /* MODAL */
  .project-modal-inner {
    padding: 2.5rem 1.8rem;
    width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
  }

  .project-modal-inner h2 { font-size: 2.2rem; }
  .project-modal-inner p { font-size: 1.5rem; }

  /* QUOTE */
  .quote-section { padding: 6rem 1.6rem; }

  /* FOOTER */
  footer { padding: 4rem 1.6rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── BREAKPOINT: small phones ── */
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.8rem, 10vw, 5rem); }
  .team-card .card-wrapper { height: 36rem; }
}
