/* =========================
   BASE
========================= */

body {
  font-family: "Roboto", Arial, sans-serif;
  color: #000;
  background: #fff;
}

a {
  color: inherit;
}


/* =========================
   NAV
========================= */
/* =========================
   HEADER
========================= */

.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  padding:28px 42px;
  mix-blend-mode:difference;
}

.header-inner,
.menu-top,
.menu-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo,
.overlay-logo{
  text-decoration:none;
  font-size:1.05rem;
  font-weight:900;
  color:#fff;
  letter-spacing:-0.02em;
}

.menu-toggle,
.menu-close{
  display:flex;
  align-items:center;
  gap:16px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
  font-weight:700;
  font-size:.9rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.menu-line{
  display:block;
  width:42px;
  height:2px;
  background:#fff;
  transition:transform .3s ease;
}

.menu-toggle:hover .menu-line{
  transform:translateX(6px);
}

/* MOBILE */

@media (max-width:768px){

  .site-header{
    padding:22px 22px;
    mix-blend-mode:normal;
  }

  .logo,
  .menu-toggle{
    color:#000;
  }

  .menu-line{
    background:#000;
    width:34px;
  }

}

.menu-overlay{
  position:fixed;
  inset:0;
  z-index:2000;
  background:#fff;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-30px);
  transition:
    opacity .35s ease,
    transform .55s cubic-bezier(.77,0,.175,1),
    visibility .35s ease;
}

.menu-overlay.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.menu-content {
  min-height: 100vh;
  padding: 42px 56px;
  display: flex;
  flex-direction: column;
}

.overlay-logo,
.menu-close {
  color: #000;
  font-weight: 900;
}

.menu-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
}

.menu-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 28px;
  width: fit-content;
  color: #000;
  text-decoration: none;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -0.05em;
  transform: translateY(30px);
  opacity: 0;
  transition:
    opacity .45s ease,
    transform .45s ease,
    color .25s ease;
}

.menu-overlay.active .menu-nav a {
  transform: translateY(0);
  opacity: 1;
}

.menu-overlay.active .menu-nav a:nth-child(1) { transition-delay: .18s; }
.menu-overlay.active .menu-nav a:nth-child(2) { transition-delay: .24s; }
.menu-overlay.active .menu-nav a:nth-child(3) { transition-delay: .30s; }
.menu-overlay.active .menu-nav a:nth-child(4) { transition-delay: .36s; }
.menu-overlay.active .menu-nav a:nth-child(5) { transition-delay: .42s; }


.menu-nav a:hover {
  color: #777;
  transform: translateX(18px);
}

.menu-footer {
  margin-top: auto;
  padding-top: 50px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: .9rem;
}

.menu-footer p {
  margin: 0;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .site-header {
    padding: 22px 24px;
  }

  .menu-content {
    padding: 28px;
  }

  .menu-nav {
    margin-top: 70px;
  }

  .menu-nav a {
    font-size: clamp(2.8rem, 14vw, 5rem);
    gap: 16px;
  }

  .menu-footer {
    display: block;
  }

  .menu-footer p + p {
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .menu-overlay{
    background:#000;
  }
  .overlay-logo,
  .menu-close,
  .menu-nav a{
    color:#fff;
  }
  .menu-nav a:hover{
    color:#777;
  }
  .menu-footer{
    border-top:1px solid rgba(255,255,255,.12);
    color:#777;
  }
}

/* CURSOR PERSONALITZAT */
@media (hover: none), (pointer: coarse) {
  * {
    cursor: auto !important;
  }
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: #000;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .08s ease, width .2s ease, height .2s ease, background .2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .18s cubic-bezier(.25,.46,.45,.94), width .2s ease, height .2s ease, opacity .2s ease;
}

body:has(.menu-overlay.active) .cursor-dot { background: #000; }
a:hover ~ .cursor-dot,
button:hover ~ .cursor-dot { width: 12px; height: 12px; }

/* TICKER */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  background: #fff;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #000;
  padding: 0 36px;
}

.ticker-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #000;
  border-radius: 50%;
  margin: 0 36px 0 0;
  vertical-align: middle;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================
   HERO VIDEO
========================= */

.video-reveal {
  height: 200vh;
  position: relative;
}

.video-layout {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px;
  overflow: hidden;
}

.video-wrapper {
  width: 45%;
  height: 60vh;
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  width: 50%;
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
}

.hero-text p {
  font-size: 1.2rem;
  margin-top: 20px;
}


/* =========================
   GENERAL SECTIONS
========================= */

.section {
  padding: 110px 0;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 900;
  line-height: .95;
}


/* =========================
   DEPARTMENT
========================= */

.department-section {
  padding: 70px 0;
}

.department-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #666;
  margin-bottom: 20px;
}

.department-subtitle {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 1000px;
  margin-bottom: 60px;
}

.department-text {
  max-width: 720px;
}

.department-text p {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* STATS */
.stats-section {
  padding: 70px 0;
  border-bottom: 1px solid #eee;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.stat-item {
  padding: 40px;
  border-right: 1px solid #eee;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { border-right: none; }

.stat-number {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #777;
  margin-top: 12px;
}

@media (max-width: 768px) {

  .stats-section{
    padding:50px 0;
  }

  .stats-grid{
    grid-template-columns:1fr 1fr;
    gap:0;
  }

  .stat-item{
    padding:28px 18px;
    border-right:1px solid #eee;
    border-bottom:1px solid #eee;
    text-align:center;
  }

  .stat-item:nth-child(even){
    border-right:none;
  }

  .stat-item:last-child{
    grid-column:1 / -1;
    border-right:none;
  }

  .stat-number{
    font-size:2.4rem;
    line-height:.95;
    width:100%;
    text-align:center;
  }

  .stat-label{
    font-size:.68rem;
    line-height:1.4;
    margin-top:10px;
    letter-spacing:.08em;
    text-align:center;
  }

}


/* STUDY CARD — número */
.study-card .study-num {
  display: block;
  font-size: .75rem;
  color: #bbb;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: .05em;
}

.study-card .tag {
  margin-bottom: 30px;
}

/* FOOTER MILLORAT */
.footer {
  background: #000;
  color: #fff;
  padding: 70px 0 40px;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid #222;
  margin-bottom: 30px;
}


.footer-brand {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: .95rem;
  color: #666;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h5 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #555;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col-heading-spaced {
  margin-top: 28px;
}

.footer-col a {
  display: block;
  font-size: .9rem;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #444;
}

@media (max-width:768px){

  .footer{
    padding:70px 24px 42px;
    text-align:center;
  }

  .footer-grid{
    grid-template-columns:1fr;
    gap:48px;

    text-align:center;
  }

  .footer-tagline{
    margin:auto;
  }

  .footer-col{
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  .footer-col a{
    margin-bottom:14px;
  }

  .footer-bottom{
    flex-direction:column;
    align-items:center;
    gap:12px;

    text-align:center;
  }

}

/* =========================
   STUDIES
========================= */

.studies-section {
  border-top: 1px solid #eee;
}

.study-card {
  display: block;
  min-height: 260px;
  padding: 30px;
  border-radius:24px;
  border-top: 1px solid #eee;
  color: #000;
  text-decoration: none;
  transition: all .25s ease;
}

.study-card .tag {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #777;
  margin-bottom: 45px;
}

.study-card h3 {
  font-size: 1.8rem;
  font-weight: 900;
}

.study-card p {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.study-card:hover {
  background: #000;
  color: #fff;
  padding-left: 40px;
}

.study-card:hover .tag {
  color: #aaa;
}


/* =========================
   DIGITAL LAB
========================= */

.tools-section {
  background: #fafafa;
  border-top: 1px solid #eee;
}

.tools-intro {
  max-width: 700px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.tool-card {
  display: block;
  padding: 40px;
  text-decoration: none;
  color: #000;
  border-radius:24px;
  overflow:hidden;
  border:1px solid #eee;
  transition: all .25s ease;
}

.tool-card h3 {
  font-size: 2rem;
  font-weight: 900;
}

.tool-card p {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.tool-card:hover {
  background: #000;
  color: #fff;
  padding-left: 50px;
}


/* =========================
   PROJECTS
========================= */

/* PROJECTE DESTACAT */
.project-featured {
  display:block;
  border:1px solid #eee;
  padding:64px;
  min-height:520px;
  background:#fafafa;

  border-radius:36px;
  overflow:hidden;

  text-decoration:none;
  color:inherit;
  transition:
    background .35s ease,
    color .35s ease,
    transform .35s ease,
    border-color .35s ease;

  position:relative;
}

.project-featured h3 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: .95;
}
.project-featured:hover{
  background:#000;
  color:#fff;
  transform:translateY(-6px);
  border-color:#000;
}

.project-featured:hover{
  background:#000;
  color:#fff;
}
.project-featured::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right,
    rgba(255,255,255,.08),
    transparent 40%);
  opacity:0;
  transition:opacity .35s ease;
}

.project-featured:hover::after{
  opacity:1;
}

.project-featured:hover .project-desc{
  color:#aaa;
}

.project-featured-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-desc {
  max-width: 520px;
  color: #555;
}

.project-link {
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
}

/* CARDS */
.project-card {
  display: block;
  border-radius:24px;
  overflow:hidden;
  padding: 32px;
  border: 1px solid #eee;
  text-decoration: none;
  color: #000;
  background: #fff;
  transition:
      background .3s ease,
      color .3s ease,
      border-color .3s ease,
      transform .3s ease;;
  height: 100%;
}

.project-card:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-6px);
}

.project-card:hover p,
.project-card:hover .project-label {

  color: #aaa;

}

/* hover “pro” suau */


.project-card * {
  position: relative;
  z-index: 1;
}

/* TEXT */
.project-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
  color: #777;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-card p {
  font-size: .95rem;
  color: #555;
}



.project-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
  color: #777;
}

/* =========================
   BUTTONS
========================= */

.btn-minimal {
  border: 1px solid #000;
  padding: 10px 20px;
  background: transparent;
  color: #000;
  text-decoration: none;
}

.btn-minimal:hover {
  background: #000;
  color: #fff;
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
@media (max-width:768px){

  .video-reveal{
    height:auto;
  }

  .video-layout{
    position:relative;
    height:auto;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:28px;
    padding:120px 20px 40px;
  }

  .video-wrapper{
    width:100%;
    height:52vh;
    border-radius:28px;
  }

  .hero-text{
    width:100%;
  }

  .hero-text h1{
    font-size:4rem;
    line-height:.88;
    letter-spacing:-0.06em;
  }

  .hero-text p{
    font-size:1rem;
    margin-top:14px;
    color:#666;
  }

}

  .featured-project {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .department-text {
    margin-left: 0;
  }
}

/* =====================
   PROJECTES ALUMNAT
===================== */

.student-projects-section {
  padding: 120px 0;
  border-bottom: 1px solid #eee;
}

.projects-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -0.03em;
  margin: 0;
}

.projects-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* PROJECTE DESTACAT */

.student-project {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 80px;
}

.project-image-wrap {
  overflow: hidden;
  background: #f5f5f5;
}

.project-image-wrap img {
  width: 100%;
  display: block;
  transition: transform .6s ease;
}

.student-project:hover img {
  transform: scale(1.03);
}

.student-project-tag {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #777;
  margin-bottom: 18px;
}

.student-project h3 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: .95;
  margin-bottom: 22px;
}

.student-project p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  max-width: 420px;
}

.student-project-link {
  display: inline-block;
  margin-top: 26px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* CARDS */

.student-project-card {
  display: block;
  padding: 34px;
  border: 1px solid #eee;
  text-decoration: none;
  color: #000;
  transition:
    background .3s ease,
    color .3s ease,
    border-color .3s ease,
    transform .3s ease;
  height: 100%;
}

.student-project-card:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-6px);
}

.student-project-card:hover p,
.student-project-card:hover .student-project-tag {
  color: #aaa;
}

.student-project-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.student-project-card p {
  font-size: .95rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* FOOTER */

.projects-footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}

.projects-footer p {
  font-size: .95rem;
  color: #666;
  margin-bottom: 12px;
}

.minimal-link {
  text-decoration: none;
  color: #000;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.minimal-link:hover {
  opacity: .6;
}
@media (max-width:768px){

  .project-card,
  .student-project-card{
    padding:24px;
  }

  .project-card h3,
  .student-project-card h4{
    font-size:1.15rem;
    line-height:1.15;
  }

  .project-card p,
  .student-project-card p{
    font-size:.9rem;
    line-height:1.6;
  }

  .project-featured{
    padding:34px 26px;
    min-height:auto;
    border-radius:32px;
    overflow:hidden;
  }

  .project-featured h3{
    font-size:2.4rem;
    line-height:.95;
  }

  .project-desc{
    font-size:.95rem;
  }

}
@media (max-width:768px){

  .site-header{
    padding:18px 20px;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-bottom:1px solid #eee;
  }

  .menu-toggle{
    font-size:.78rem;
    gap:10px;
  }

  .menu-line{
    width:28px;
  }
  .info-section .row{
    --bs-gutter-x:22px;
  }
  .info-box{
    text-align:center;
    padding:26px 8px;
  }
  .info-box p{
    font-size:.98rem;
  }


}


