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

.hero {
  background: var(--dark);
  padding: 0px;
  position: relative;
}

.hero,
.hero * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 20px);
  max-width: 520px;
  align-self: center;
}

.hero p {
  max-width: 520px;
}

.hero-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: clamp(600px, calc(100vh - 70px), 1000px);
}

.hero-left {
  display: flex;
  align-items: stretch;
  padding-left: calc((100vw - 1280px) / 2);
}

.hero-left p {
  color: var(--white);
  text-align: justify;
  hyphens: manual;
  font-weight: 500;
}

.hero-content p {
  opacity: 0.55;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.hero-content p.active {
  opacity: 1;
  font-weight: 600;
  letter-spacing: 0.0px;
}

.hero-right .lang-switch {
  display:none;
}

@media(min-width:901px) {
  .hero-heading-left {
    display: block;
    max-width: 500px;
    margin-bottom: 49px;
  }

  .hero-heading-right {
    display: none;
  }
}

.hero-title {
  font-size: 76px;
  font-style: italic;
  text-align: right;
  letter-spacing: 0.04em;
  line-height: 0.90;
  position: relative;
  display: block;
  margin: 0px;
  padding: 11px;
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent) 44%, #c49e81 48%, #d6b39a 50%, #c49e81 52%, var(--accent) 56%, var(--accent) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShine 9s linear infinite;
  width: 100%;
  white-space: nowrap;
  z-index: 5;
}

.hero-title-pl {
  font-size: 60px;
}

.hero-title:nth-of-type(1) {
  text-align: right;
  animation: heroShine 9s linear infinite, heroDrift 6s ease-in-out infinite;
}

.hero-title:nth-of-type(2) {
  text-align: center;
}

.hero-title:nth-of-type(3) {
  text-align: left;
  animation: heroShine 9s linear infinite, heroDrift 6s ease-in-out infinite reverse;
  animation-delay: 0s, -3s;
}

@keyframes heroDrift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(14px);
  }
}

@keyframes heroShine {
  0% {
    background-position: -250% 0;
  }

  100% {
    background-position: 250% 0;
  }
}

.hero-text {
  max-width: 520px;
  padding: clamp(19px, 4vh, 49px) 60px 60px 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background-image: url("hero.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
  z-index: 0;
}

.hero-right video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-right::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

.hero-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-self: end;
  margin-top: 50px;
}

.hero-buttons .btn {
  width: 100%;
  text-align: center;
}

.hero-scroll {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  transition: left .25s ease;
}

.scroll-circle {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}

.scroll-circle svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2.5;
  fill: none;
  transition: transform .3s ease;
  transform: translateY(-1px);
}

.scroll-circle:hover {
  border-color: color-mix(in srgb, var(--accent) 90%, transparent);
  background: rgba(255, 255, 255, 0.2);
}

.scroll-circle:hover svg {
  stroke: color-mix(in srgb, var(--accent) 90%, transparent);
}

@keyframes scrollBounce {

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

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

@keyframes scrollBounceHover {

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

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

.scroll-circle svg {
  animation: scrollBounce 2.2s ease-in-out infinite;
}

.scroll-circle:hover svg {
  animation: scrollBounceHover 0.9s ease-in-out infinite;
}

/* ================= ABOUT ================= */

.about {
  background: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}

p.about {
  text-align: justify;
  hyphens: manual;
  padding-bottom: 8px;
}

/* ================= RESEARCH ================= */

.research-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  padding: 0;
  min-height: 200vh;
}

.research-overlay {
  position: absolute;
  top: 90px;
  left: max(32px, calc((100vw - 1280px) / 2 + 32px));
  z-index: 3;
  pointer-events: none;
}

.research-overlay h2 {
  color: var(--white);
  margin: 0;
}

.research-left {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  align-self: start;
  overflow: hidden;
  background-image: url("research.webp");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.research-left video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.research-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: .4;
  z-index: 2;
}

.research-right {
  height: auto;
  overflow: visible;
  background: var(--white);
}

.research-sticky {
  position: static;
  height: 100%;
  padding: 60px max(32px, calc((100vw - 1280px) / 2 + 32px)) 60px 60px;
}

.research-vertical {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 0px;
}

.research-vertical .card {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 30px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

.research-vertical .card p {
  margin: 18px 0;
  text-align: justify;
  hyphens: manual;
}

.research-vertical .card h3 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.research-vertical .card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0 0;
}

.research-vertical .card li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.check-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.check-circle {
  fill: var(--white);
  stroke: var(--border);
  stroke-width: 1;
}

.check-mark,
.plus-mark {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: square;
}

/* ================= PUBLICATIONS ================= */

.publications-section {
  background: var(--muted);
}

.publications-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pub {
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .25s ease;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.pub:hover {
  border-color: transparent;
}

.pub img {
  width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
  border-bottom: 3px solid var(--dark);
  transform-origin: center bottom;
}

.pub:hover img {
  transform: scale(1.05);
  border-bottom: 3px solid var(--accent);
}

.pub::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  background: var(--dark);
  opacity: .4;
  pointer-events: none;
  transition: opacity .35s ease;
}

.pub:hover::after {
  opacity: .1;
}

.pub-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.pub-content {
  padding: 14px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-content p {
  text-align: justify;
  hyphens: manual;
}

.pub-content h3 {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  min-height: 90px;
  transition: color .25s ease;
}

.pub:hover h3 {
  color: var(--accent);
}

.pub-date {
  font-size: 12px;
  color: var(--gray);
  line-height: 1;
}

.pub-read {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.read-arrow {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform .25s ease;
  display: block;
  object-fit: contain;
}

.pub:hover .pub-read {
  color: var(--accent);
}

.pub:hover .read-arrow {
  transform: translateX(3px);
}

.pub:nth-of-type(4) {
  display: none;
}

@media (min-width:601px) and (max-width:900px) {
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pub:nth-of-type(4) {
    display: flex;
  }

  .pub img {
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
  }

  .pub::after {
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
  }
}

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

  .pub img {
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
  }

  .pub::after {
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
  }
}


/* ================= BRIEFS ================= */

section:has(.briefs) {
  background: var(--white);
}

.briefs {
  margin: auto;
}

.brief {
  margin-top: -1px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  align-items: start;
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brief:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.brief::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: transparent;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  z-index: -1;
  transition: background .25s ease, border-color .25s ease;
}

.brief:hover::before {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brief h3 {
  transition: color .25s ease;
}

.brief:hover h3 {
  color: var(--accent);
}

.brief img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
  transform-origin: center;
}

.brief-image {
  width: 240px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: border-color .35s ease;
  border-radius: 4px;
}

.brief-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: .4;
  pointer-events: none;
  transition: opacity .35s ease;
}

.brief:hover .brief-image::after {
  opacity: .1;
}

.brief:hover img {
  transform: scale(1.05);
}

.brief:hover .brief-image {
  border-color: var(--accent);
}

.brief-content {
  display: flex;
  flex-direction: column;
}

.brief-content h3 {
  margin-bottom: 8px;
}

.brief-content p {
  margin-bottom: 10px;
  text-align: justify;
  text-align-last: justify;
  hyphens: manual;
  line-height: 1.80;
  max-height: 5.4em;
  overflow: hidden;
}

.brief-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.brief-date {
  font-size: 12px;
  color: var(--gray);
}

.brief-read {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.brief:hover .brief-read {
  color: var(--accent);
}

.brief:hover .read-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ================= PRINCIPLES ================= */

.principles-section {
  background: var(--dark);
  color: var(--white);
}

.principles-section .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.principles-section .btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.principles-list {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.principles-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--white);
}

.principles-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  padding: 0;
  min-height: 500px;
}

.principles-left {
  position: relative;
  overflow: hidden;
  background-image: url("principles.webp");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.principles-left video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.principles-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: .45;
  z-index: 2;
}

.principles-right {
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 100px calc((100vw - 1280px) / 2) 90px 60px;
}

.principles-right h3 {
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.principles-section .check-circle {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.35);
}

.principles-right p {
  color: var(--white);
  text-align: justify;
  hyphens: manual;
}

.principles-overlay {
  position: absolute;
  top: 90px;
  left: max(32px, calc((100vw - 1280px) / 2 + 32px));
  z-index: 3;
  pointer-events: none;
}

.principles-overlay h2 {
  color: var(--white);
  margin: 0;
}

/* ================= COOPERATION ================= */

.cooperation-scroll {
  padding: 90px 0 90px;
  background: var(--muted);
}

.cooperation-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 120px;
  align-items: start;
  min-height: auto;
}

.coop-left {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.coop-keywords {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 25px;
}

.coop-keyword {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--gray);
  transition: color .35s ease, transform .35s ease;
  cursor: pointer;
}

.coop-keyword.active {
  color: var(--accent);
  transform: translateX(10px);
}

.coop-text {
  max-width: 100%;
  position: relative;
  margin-bottom: 0px;
}

.coop-paragraph {
  display: none;
}

.coop-paragraph.active {
  display: block;
  animation: coopFade .35s ease;
}

@keyframes coopFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.coop-paragraph h3 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--dark) 15%, transparent);
}

.coop-paragraph p {
  margin-bottom: 8px;
  text-align: justify;
  hyphens: manual;
}

.coop-paragraph.active {
  opacity: 1;
  transform: translateY(0);
}

.coop-action {
  margin-top: 0px;
  display: flex;
  justify-content: flex-end;
}

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

@media(max-width:900px) {

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-right {
    height: clamp(300px, 40vh, 500px);
    order: -1;
  }

  .hero-title {
    font-size: 48px;
    position: relative;
    display: block;
    padding: 6px;
 }

  .hero-title-shadow {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: rgba(0, 0, 0, 1);
    filter: blur(16px);
    opacity: 0.9;
    transform: scale(1.1) translateY(1px);
    z-index: 1;
    pointer-events: none;
  }

  .hero-title-text {
    position: relative;
    z-index: 2;
    background: linear-gradient(110deg, var(--accent) 0%, var(--accent) 44%, #c49e81 48%, #d6b39a 50%, #c49e81 52%, var(--accent) 56%, var(--accent) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heroShine 9s linear infinite;
  }

  .hero-left {
    padding: 0;
  }

  .hero-heading-left {
    display: none;
  }

  .hero-heading-right {
    display: block;
    max-width: 500px;
    width: 100%;
    margin-left: 0px;
    font-size: 48px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.01em;
  }

  .hero-heading-right .hero-title {
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-title:nth-of-type(1) {
    right:14px
  }

  .hero-text {
    padding: 32px 32px 60px 32px;
    width: 100%;
    max-width: none;
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  .hero p {
    max-width: none;
  }

  .hero-buttons {
    grid-template-columns: repeat(2, minmax(0, 250px));
    justify-content: center;
    margin-top: 40px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
  }

  .hero-scroll {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about h2 {
    margin-bottom: -40px;
  }

  p.about {
    margin-top: 0px;
    padding-top: 0px;
  }

  .research-split {
    grid-template-columns: 1fr;
  }

  .research-left {
    top: 0px;
    position: relative;
    height: 300px;
  }

  .research-vertical {
    margin-top: -28px;
  }

  .research-sticky {
    position: static;
    padding: 90px 32px;
  }

  .research-overlay {
    top: auto;
    bottom: 20px;
  }


  .pub img,
  .pub::after {
    height: 40vw;
    min-height: 200px;
  }

  .brief {
    grid-template-columns: 140px 1fr;
    display: grid;
    align-items: start;
    gap: 14px;
  }

  .brief-content {
    display: contents;
  }

  .brief-image {
    width: 140px;
    height: 93px;
    flex-shrink: 0;
  }

  .brief h3 {
    grid-column: 2;
    margin: 0;
  }

  .brief-content p,
  .brief-meta {
    grid-column: 1 / -1;
  }

  .principles-split {
    grid-template-columns: 1fr;
  }

  .principles-left {
    height: 300px;
  }

  .principles-right {
    padding: 30px 0 90px;
  }

  .principles-overlay {
    top: auto;
    bottom: 20px;
  }

  .cooperation-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .coop-left {
    order: 1;
    margin-bottom: 0px;
  }

  .coop-text {
    order: 2;
  }

  .coop-keywords {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 24px;
    margin: 10px 0 0 0;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: -6px;
  }

  .coop-keyword {
    font-size: 24px;
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    margin-top: 6px;
    padding-bottom: 8px;
    transition: transform 0.25s ease, color 0.25s ease;
  }

  .coop-keyword::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.3px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease-out;
  }

  .coop-keyword.active {
    transform: translateY(-6px);
  }

  .coop-keyword.active::after {
    transform: scaleX(1);
  }
}

@media (max-width:500px), (min-width:901px) and (max-width:1000px) {
  .hero-right .lang-switch {
    display: flex;
    position: absolute;
    top: 31px;
    right: 31px;
    z-index: 10;
    box-shadow: 0 0 12px rgba(15, 42, 44, 0.15), 0 0 24px rgba(15, 42, 44, 0.3);
  }
}



@media (prefers-reduced-motion: reduce), (max-width: 1px) {
  .pub,
  .brief,
  .card {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  .pub img,
  .brief img {
    display: none !important;
  }

  .pub::after,
  .brief::after {
    display: none !important;
  }
}
