@font-face {
  font-family: "DM Sans";
  src: url("dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  src: url("dm-sans-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --black: #000;
  --charcoal: #4a4f54;
  --beige: #bab0a3;
  --warm-white: #f0ebe3;
  --paper: #f5f5f5;
  --white: #fff;
  --green: #25d366;
  --container: 1500px;
  --ease: cubic-bezier(0.6, 0, 0, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--white);
  color: var(--charcoal);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 80px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 20000;
  padding: 12px 18px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--beige);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: 100px;
  display: flex;
  align-items: center;
  padding-block: 20px;
  background: var(--black);
  transition: background-color 0.65s var(--ease), box-shadow 0.4s ease;
}

.home .site-header {
  background: transparent;
}

.home .site-header.is-compact,
.site-header.is-compact {
  background: var(--black);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.header-inner {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.home .header-inner {
  justify-content: flex-end;
}

.site-logo {
  position: relative;
  z-index: 1002;
  width: 180px;
  flex: 0 0 auto;
}

.site-logo img {
  width: 100%;
}

.home .site-header:not(.is-compact) .site-logo {
  position: fixed;
  left: 50%;
  top: 47vh;
  width: min(40vw, 610px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: top 0.8s var(--ease), left 0.8s var(--ease), width 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.home .site-header.is-compact .site-logo {
  position: fixed;
  left: 80px;
  top: 20px;
  width: 180px;
  transform: none;
  transition: top 0.8s var(--ease), left 0.8s var(--ease), width 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}

.primary-nav a {
  position: relative;
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 1px;
  transform: translateX(-50%);
  background: var(--white);
  transition: width 0.35s var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 1003;
  width: 42px;
  height: 42px;
  border: 0;
  padding: 9px;
  background: transparent;
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  background: var(--black);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center top;
}

.hero-down {
  position: absolute;
  left: 50%;
  bottom: 8vh;
  z-index: 2;
  width: 38px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--white);
  transform: translateX(-50%);
  animation: arrow-down 0.9s ease-in-out infinite;
}

.hero-down svg {
  width: 24px;
  margin: auto;
}

@keyframes arrow-down {
  0%,
  100% {
    transform: translate(-50%, 6px);
  }
  50% {
    transform: translate(-50%, 0);
  }
}

.home-about {
  padding-block: 80px;
  background: var(--charcoal);
  color: var(--white);
}

.about-grid {
  max-width: 1250px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 90px;
}

.about-mark {
  width: 95px;
  margin-inline: auto;
}

.about-copy {
  max-width: 890px;
}

.about-copy p + p {
  margin-top: 22px;
}

.parallax-block {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}

.parallax-block.small {
  min-height: 400px;
}

.parallax-media {
  position: absolute;
  inset: -12%;
  z-index: -1;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.04);
  will-change: transform;
}

.parallax-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-block.fit-width .parallax-media {
  inset: auto 0;
  top: 50%;
  aspect-ratio: var(--fit-width-ratio, 1171 / 821);
  transform: translate3d(0, calc(-50% + var(--parallax-y, 0px)), 0);
}

.home-office-image,
.about-office-image {
  --fit-width-ratio: 1171 / 821;
}

.home-books-image {
  --fit-width-ratio: 1132 / 711;
}

.home-office-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.parallax-block.dimmed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.section-heading {
  color: var(--charcoal);
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 700;
}

.home-team {
  padding-block: 80px;
  background: var(--white);
}

.team-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.carousel-controls {
  display: flex;
  gap: 18px;
}

.carousel-button {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  transition: background 0.25s ease, color 0.25s ease;
}

.carousel-button:hover {
  background: var(--black);
  color: var(--white);
}

.carousel-button svg {
  width: 10px;
}

.team-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 96px) / 5);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.team-carousel::-webkit-scrollbar {
  display: none;
}

.team-card {
  min-width: 0;
  scroll-snap-align: start;
}

.team-card button {
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  text-align: inherit;
  cursor: pointer;
}

.team-photo {
  position: relative;
  display: block;
  aspect-ratio: 375 / 459;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
  transition: filter 0.55s var(--ease);
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.65s var(--ease), filter 0.35s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.08);
}

.team-carousel:has(.team-card:hover) .team-card:not(:hover) .team-photo {
  filter: grayscale(1) brightness(0.65);
}

.team-name {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 20px 14px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.areas-section {
  padding-block: 95px 70px;
  background: var(--black);
  color: var(--white);
}

.areas-intro {
  max-width: 660px;
  margin: 0 auto 28px;
  text-align: center;
}

.areas-intro .section-heading {
  margin-inline: auto;
  color: var(--beige);
}

.areas-intro p {
  margin-top: 18px;
  color: var(--warm-white);
}

.areas-list {
  list-style: none;
}

.area-item {
  min-height: 130px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
  padding: 35px 42px;
  border-bottom: 1px solid var(--beige);
}

.area-item:last-child {
  border-bottom: 0;
}

.area-icon {
  width: 48px;
  height: 48px;
}

.area-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.area-item p {
  font-size: 20px;
  line-height: 1.35;
}

.home-publications {
  padding-block: 80px;
  background: var(--white);
}

.home-publications .section-heading {
  text-align: center;
}

.home-publications .outline-button {
  display: flex;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  margin-top: 58px;
}

.publication-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 1;
  transform: scale(1);
  transform-origin: center top;
  transition: opacity 0.24s ease, transform 0.32s var(--ease);
  will-change: opacity, transform;
}

.publication-card.is-filtering-out,
.publication-card.is-filtering-in {
  opacity: 0;
  transform: scale(0.93);
}

.publication-card[hidden] {
  display: none !important;
}

.publication-grid.is-filtering {
  pointer-events: none;
}

.publication-cover {
  aspect-ratio: 632 / 922;
  overflow: hidden;
  background: var(--paper);
}

.publication-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.3s ease;
}

.publication-card:hover .publication-cover img {
  transform: scale(1.07);
  filter: brightness(0.78);
}

.publication-card h3 {
  margin-top: 14px;
  color: var(--black);
  font-size: 17px;
  line-height: 1.15;
  text-align: center;
}

.outline-button {
  width: max-content;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 48px auto 0;
  padding: 18px 36px;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.3s ease;
}

.outline-button:hover {
  background: var(--black);
  color: var(--white);
}

.image-strip-wrap {
  position: relative;
  background: linear-gradient(to bottom, var(--white) 50%, var(--black) 50%);
}

.image-strip {
  width: calc(100% - 80px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: auto;
}

.image-strip figure {
  aspect-ratio: 452 / 510;
  overflow: hidden;
  background: var(--black);
}

.image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.image-strip figure:hover img {
  transform: scale(1.08);
}

.page-title {
  position: relative;
  z-index: 1;
  padding: 160px 0 58px;
  background: var(--black);
  color: var(--beige);
}

.page-title h1 {
  max-width: 780px;
  margin-inline: auto;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.08;
  text-align: center;
}

.page-title .eyebrow {
  display: block;
  margin-top: 14px;
  color: var(--white);
  font-size: 18px;
  text-align: center;
}

.internal-media-shell {
  background: linear-gradient(to bottom, var(--black) 46%, var(--charcoal) 46%);
}

.internal-media {
  min-height: 400px;
  margin-inline: auto;
}

.about-page {
  padding-block: 70px;
  background: var(--charcoal);
  color: var(--white);
}

.team-page-shell,
.publication-page-shell,
.single-page-shell {
  position: relative;
  padding-bottom: 80px;
  background: linear-gradient(to bottom, var(--black) 330px, var(--white) 330px);
}

.team-list {
  display: grid;
  gap: 28px;
}

.team-profile {
  display: grid;
  grid-template-columns: 375px minmax(0, 1fr);
  gap: 70px;
  align-items: center;
  padding: 70px 90px;
  background: var(--paper);
}

.team-profile-image {
  aspect-ratio: 375 / 459;
  overflow: hidden;
}

.team-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.team-profile:hover .team-profile-image img {
  transform: scale(1.04);
}

.team-profile h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.05;
}

.team-profile p {
  margin-bottom: 20px;
}

.team-profile .email {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.team-profile .email:hover {
  text-decoration: underline;
}

.linkedin-link {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.25s ease;
}

.linkedin-link:hover {
  opacity: 0.55;
}

.areas-page {
  min-height: 580px;
  padding-block: 20px 80px;
  background: var(--black);
  color: var(--white);
}

.publication-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 70px;
  padding: 70px 90px;
  background: var(--paper);
}

.publication-index .publication-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.publication-index .publication-card h3 {
  text-align: left;
}

.publication-categories h2 {
  margin-bottom: 20px;
  font-size: 34px;
  line-height: 1.05;
}

.publication-categories ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.publication-categories a {
  position: relative;
  display: inline-block;
  font-weight: 700;
  transition: color 0.25s ease;
}

.publication-categories a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.publication-categories a:hover::after,
.publication-categories a[aria-current="true"]::after {
  transform: scaleX(1);
}

.publication-categories a[aria-current="true"] {
  color: #71675c;
}

.single-card {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  padding: 70px 90px;
  background: var(--paper);
}

.single-card.category-card {
  display: block;
}

.single-cover {
  aspect-ratio: 632 / 922;
  overflow: hidden;
}

.single-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-content h2 {
  margin-bottom: 10px;
  font-size: 40px;
  line-height: 1.05;
}

.single-authors {
  margin-bottom: 34px;
  font-size: 18px;
  font-weight: 700;
}

.bibliography {
  font-size: 18px;
}

.academic-list {
  list-style: none;
  display: grid;
  gap: 22px;
}

.academic-list li {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(74, 79, 84, 0.25);
}

.academic-list li:last-child {
  border-bottom: 0;
}

.contact-page {
  padding-block: 70px;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 80px;
  align-items: stretch;
}

.contact-photo {
  min-height: 520px;
  height: 100%;
  overflow: hidden;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.contact-photo:hover img {
  transform: scale(1.03);
}

.contact-content {
  min-width: 0;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto minmax(230px, 1fr);
  gap: 34px;
}

.contact-info-row {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
}

.contact-logo {
  width: 100%;
  margin: 0;
}

.contact-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-details {
  list-style: none;
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-address span {
  display: block;
}

.map-slot {
  min-height: 170px;
  margin-top: 0;
  background: #d9d9d9;
}

.contact-content > .map-slot {
  height: 100%;
  min-height: 230px;
}

.map-slot iframe {
  width: 100%;
  height: 100%;
  min-height: 170px;
  border: 0;
}

.map-placeholder {
  min-height: inherit;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  color: #272727;
  text-align: center;
}

.map-placeholder button {
  width: max-content;
  margin-inline: auto;
  padding: 10px 18px;
  border: 1px solid #272727;
  background: transparent;
  font-weight: 700;
}

.legal-page {
  padding-block: 70px 90px;
}

.legal-content {
  max-width: 950px;
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-size: 28px;
  line-height: 1.15;
}

.legal-content p + p,
.legal-content ul + p {
  margin-top: 16px;
}

.legal-content ul {
  margin-top: 16px;
  padding-left: 20px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 58px;
  padding: 72px 0 26px;
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.footer-logo {
  width: 280px;
}

.footer-nav ul,
.footer-contact {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-nav a:hover,
.footer-contact a:hover,
.footer-legal a:hover,
.footer-credit a:hover {
  text-decoration: underline;
}

.footer-whatsapp {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px 24px;
  border: 1px solid var(--white);
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-whatsapp:hover {
  background: var(--white);
  color: var(--black);
}

.footer-map {
  min-height: 150px;
  filter: grayscale(1) brightness(0.72);
}

.footer-map:hover,
.footer-map:focus-within {
  filter: grayscale(0.35) brightness(0.9);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--white);
  font-size: 14px;
  text-align: center;
}

.footer-bottom button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 900;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.25);
  animation: whatsapp-pulse 1.6s infinite;
  transition: transform 0.25s ease, background 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  background: #35897e;
}

.whatsapp-float svg {
  width: 28px;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.25);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.dialog-backdrop.is-open {
  display: grid;
}

.dialog-panel {
  position: relative;
  width: min(100%, 1150px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--paper);
  color: var(--charcoal);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.dialog-close {
  position: sticky;
  top: 14px;
  z-index: 2;
  float: right;
  width: 44px;
  height: 44px;
  margin: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 25px;
  line-height: 1;
}

.team-dialog-content {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  padding: 70px;
}

.team-dialog-content img {
  width: 100%;
  aspect-ratio: 375 / 459;
  object-fit: cover;
}

.team-dialog-content h2 {
  margin-bottom: 16px;
  font-size: 38px;
  line-height: 1.05;
}

.team-dialog-content p {
  margin-bottom: 20px;
}

.cookie-banner {
  position: fixed;
  inset: auto 24px 24px;
  z-index: 11000;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 24px 28px;
  background: #101010;
  color: var(--white);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

.cookie-banner.is-open {
  display: grid;
}

.cookie-banner h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.cookie-banner p {
  max-width: 850px;
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-button {
  padding: 12px 17px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.cookie-button.primary {
  background: var(--white);
  color: var(--black);
}

.consent-panel {
  width: min(100%, 650px);
  padding: 38px;
}

.consent-panel h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ccc;
}

.consent-option strong {
  display: block;
  margin-bottom: 4px;
}

.consent-option input {
  width: 22px;
  height: 22px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.consent-actions button {
  padding: 12px 18px;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  font-weight: 700;
}

.consent-actions .primary {
  background: var(--charcoal);
  color: var(--white);
}

@media (max-width: 1199px) {
  .container {
    padding-inline: 50px;
  }

  .home .site-header.is-compact .site-logo {
    left: 50px;
  }

  .primary-nav ul {
    gap: 22px;
  }

  .team-carousel {
    grid-auto-columns: calc((100% - 72px) / 4);
  }

  .publication-index,
  .team-profile,
  .single-card {
    padding: 60px 55px;
  }

  .team-profile {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 50px;
  }

  .single-card {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 55px;
  }
}

@media (max-width: 991px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: grid;
    place-items: center;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06);
    transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease), transform 0.45s var(--ease);
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 26px;
  }

  .primary-nav a {
    font-size: 28px;
  }

  .team-carousel {
    grid-auto-columns: calc((100% - 48px) / 3);
  }

  .publication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publication-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .publication-categories {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-profile {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
  }

  .single-card {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
  }

  .contact-grid {
    gap: 50px;
  }

  .team-dialog-content {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    padding: 52px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .container {
    padding-inline: 24px;
  }

  .site-header {
    min-height: 86px;
    padding-block: 20px;
  }

  .site-logo {
    width: 155px;
  }

  .home .site-header:not(.is-compact) .site-logo {
    width: min(70vw, 330px);
  }

  .home .site-header.is-compact .site-logo {
    left: 24px;
    top: 22px;
    width: 145px;
  }

  .primary-nav a {
    font-size: 24px;
  }

  .hero {
    min-height: 94svh;
  }

  .home-about {
    padding-block: 48px;
  }

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

  .about-mark {
    width: 75px;
  }

  .parallax-block,
  .parallax-block.small {
    min-height: 380px;
  }

  .parallax-block.fit-width {
    min-height: 0;
    aspect-ratio: var(--fit-width-ratio, 1171 / 821);
  }

  .parallax-block.fit-width .parallax-media {
    inset: 0;
    aspect-ratio: auto;
    transform: none;
  }

  .parallax-block.fit-width .parallax-media img {
    object-fit: contain;
  }

  .home-team,
  .home-publications {
    padding-block: 50px;
  }

  .team-heading-row {
    margin-bottom: 30px;
  }

  .carousel-button {
    width: 48px;
    height: 48px;
  }

  .team-carousel {
    grid-auto-columns: 84%;
  }

  .team-photo {
    width: 100%;
    height: auto;
  }

  .areas-section {
    padding-block: 52px 35px;
  }

  .area-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    padding: 30px 0;
  }

  .area-icon {
    width: 34px;
    height: 34px;
  }

  .area-item p {
    font-size: 17px;
  }

  .publication-grid {
    gap: 28px 12px;
    margin-top: 38px;
  }

  .publication-card h3 {
    font-size: 15px;
  }

  .outline-button {
    width: 100%;
    margin-top: 36px;
  }

  .image-strip {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-strip figure:nth-child(n + 3) {
    display: none;
  }

  .page-title {
    padding: 132px 0 45px;
  }

  .internal-media-shell {
    background: linear-gradient(to bottom, var(--black) 35%, var(--charcoal) 35%);
  }

  .about-page {
    padding-block: 48px;
  }

  .team-page-shell,
  .publication-page-shell,
  .single-page-shell {
    padding-bottom: 0;
    background: linear-gradient(to bottom, var(--black) 220px, var(--white) 220px);
  }

  .team-list {
    gap: 18px;
  }

  .team-profile {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px 24px 38px;
  }

  .team-profile h2 {
    font-size: 28px;
  }

  .publication-index {
    padding: 42px 24px;
  }

  .publication-index .publication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .single-card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 24px;
  }

  .single-cover {
    max-width: 360px;
    margin-inline: auto;
  }

  .single-content h2 {
    font-size: 30px;
  }

  .contact-page {
    padding-block: 45px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-photo {
    min-height: 410px;
  }

  .contact-content {
    min-height: 0;
    grid-template-rows: auto 250px;
  }

  .contact-info-row {
    grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 24px;
  }

  .footer-brand,
  .footer-grid > .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-logo {
    width: 230px;
    margin-inline: auto;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 18px;
    width: 58px;
    height: 58px;
  }

  .team-dialog-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px;
  }

  .team-dialog-content img {
    max-width: 330px;
    margin-inline: auto;
  }

  .team-dialog-content h2 {
    font-size: 30px;
  }

  .cookie-banner {
    inset: auto 10px 10px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-button {
    width: 100%;
  }

  .consent-panel {
    padding: 28px 22px;
  }

  .consent-actions {
    display: grid;
  }
}

@media (max-width: 520px) {
  .contact-info-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-logo {
    width: min(260px, 82%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .parallax-media {
    transform: scale(1.04) !important;
  }
}

@media print {
  .site-header,
  .whatsapp-float,
  .cookie-banner,
  .image-strip-wrap,
  .footer-map,
  .menu-toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}
