html {
  scroll-behavior: smooth;
  scroll-padding-top: 73px;
}

#menu-toggle .close-icon {
  display: none;
}

#menu-toggle[aria-expanded="true"] .menu-icon {
  display: none;
}

#menu-toggle[aria-expanded="true"] .close-icon {
  display: block;
}

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

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

/* Páginas institucionais */
.inner-page {
  overflow-x: hidden;
}

.inner-page main {
  padding-top: 73px;
}

.inner-wrap {
  width: min(100% - 2.5rem, 80rem);
  margin-inline: auto;
}

.inner-section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.inner-kicker {
  color: #777;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.section-dark .inner-kicker {
  color: #aaa;
}

.inner-title {
  margin-top: 1rem;
  max-width: 13ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.65rem, 6.2vw, 5.7rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.inner-title--wide {
  max-width: 18ch;
}

.inner-heading {
  max-width: 15ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4.5vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.inner-copy {
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
}

.inner-copy p + p {
  margin-top: 1.45rem;
}

.silver-text {
  background: var(--gradient-silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.inner-hero {
  min-height: min(780px, calc(100svh - 73px));
  position: relative;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.1), transparent 34%),
    linear-gradient(90deg, #090909 0%, rgba(9,9,9,.93) 42%, rgba(9,9,9,.18) 78%);
}

.inner-hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 61%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

.inner-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.inner-hero__lede {
  margin-top: 2rem;
  max-width: 39rem;
  color: #b6b6b6;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

.inner-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.inner-grid-2 {
  display: grid;
  gap: clamp(2.75rem, 7vw, 7rem);
}

.inner-image-frame {
  position: relative;
}

.inner-image-frame::before {
  content: "";
  position: absolute;
  inset: -1rem 1rem 1rem -1rem;
  z-index: 0;
  border: 1px solid #d8d8d8;
}

.inner-image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 28rem;
  object-fit: cover;
  filter: grayscale(100%);
}

.metric-row {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid #e2e2e2;
  background: #e2e2e2;
}

.metric {
  background: #fff;
  padding: 1.4rem;
}

.metric strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 300;
}

.metric span {
  color: #6e6e6e;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.purpose-band {
  position: relative;
  overflow: hidden;
}

.purpose-band::after {
  content: "FAHL";
  position: absolute;
  right: -0.05em;
  bottom: -0.3em;
  color: rgba(255,255,255,.035);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(10rem, 28vw, 29rem);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1;
}

.purpose-quote {
  position: relative;
  z-index: 1;
  max-width: 25ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 5.3vw, 5rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.media-card {
  overflow: hidden;
  border: 1px solid #ddd;
  background: #f4f4f4;
}

.media-card img,
.media-card iframe,
.media-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card iframe {
  border: 0;
  aspect-ratio: 16 / 9;
}

.media-card__body {
  padding: 1.3rem;
}

.media-card__body h3 {
  font-size: 1.25rem;
  font-weight: 400;
}

.media-card__body p {
  margin-top: .45rem;
  color: #747474;
  font-size: .88rem;
  line-height: 1.7;
}

.institutional-cta {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.institutional-cta .inner-heading {
  margin-inline: auto;
  max-width: 20ch;
}

.institutional-cta p {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: #aaa;
  line-height: 1.8;
}

.institutional-cta .btn-silver {
  margin-top: 2rem;
}

/* Dr. Newton Fahl */
.newton-hero .inner-hero__media {
  object-position: 65% 25%;
}

.credential-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.credential-card {
  min-height: 11rem;
  padding: 1.5rem;
  border: 1px solid #ddd;
  background: linear-gradient(145deg, #fff, #f5f5f5);
}

.credential-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.35rem;
  font-weight: 300;
  letter-spacing: -.04em;
}

.credential-card p {
  margin-top: 2rem;
  color: #666;
  font-size: .88rem;
  line-height: 1.6;
}

.legacy-section {
  position: relative;
  overflow: hidden;
}

.legacy-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.legacy-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #111;
}

.legacy-card img,
.legacy-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.legacy-card video {
  background: #000;
}

.legacy-card__caption {
  padding: 1rem 1.2rem;
  color: #aaa;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Publicações */
.publications-hero {
  min-height: 670px;
}

.publications-hero .inner-hero__media {
  width: 48%;
  padding: clamp(3rem, 7vw, 6rem);
  object-fit: contain;
  filter: none;
}

.publication-feature {
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.publication-cover {
  position: relative;
  width: min(100%, 29rem);
  margin-inline: auto;
}

.publication-cover::after {
  content: "";
  position: absolute;
  inset: 7% -7% -7% 7%;
  z-index: -1;
  background: #e5e5e5;
}

.publication-cover img {
  width: 100%;
  max-height: 42rem;
  object-fit: contain;
  filter: grayscale(10%);
  box-shadow: 0 30px 60px -35px rgba(0,0,0,.65);
}

.publication-feature__content h2 {
  margin-top: 1rem;
  max-width: 16ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.publication-meta {
  margin-top: 1rem;
  color: #777;
  font-size: .78rem;
  letter-spacing: .06em;
  line-height: 1.65;
  text-transform: uppercase;
}

.publication-feature__content .inner-copy {
  margin-top: 2rem;
  font-size: 1rem;
}

.publication-feature__content .btn-silver,
.publication-feature__content .btn-ghost-line {
  margin-top: 2rem;
}

.protocol-feature {
  background: #111;
  color: #fff;
}

.protocol-feature .publication-cover::after {
  background: rgba(255,255,255,.09);
}

.protocol-feature .publication-meta,
.protocol-feature .inner-copy {
  color: #aaa;
}

.publication-archive__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.publication-count {
  color: #777;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.publication-list {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid #ddd;
  background: #ddd;
}

.publication-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  min-height: 8.5rem;
  padding: 1.5rem;
  background: #fff;
  transition: background .25s ease;
}

a.publication-item:hover {
  background: #f5f5f5;
}

.publication-item__number {
  color: #999;
  font-family: "Space Grotesk", sans-serif;
  font-size: .75rem;
}

.publication-item h3 {
  max-width: 65ch;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.55;
}

.publication-item__type {
  color: #777;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.publication-item--unlinked .publication-item__type {
  color: #aaa;
}

.publication-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.publication-more button[hidden] {
  display: none;
}

.archive-status {
  margin-top: 2rem;
  color: #777;
  text-align: center;
}

@media (min-width: 42rem) {
  .metric-row,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .inner-grid-2,
  .publication-feature {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
  }

  .inner-grid-2--reverse > :first-child,
  .protocol-feature .publication-cover {
    order: 2;
  }

  .inner-grid-2--reverse > :last-child,
  .protocol-feature .publication-feature__content {
    order: 1;
  }

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

  .legacy-grid {
    grid-template-columns: 1.25fr .75fr;
  }

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

@media (max-width: 47.99rem) {
  .inner-wrap {
    width: min(100% - 2rem, 80rem);
  }

  .inner-hero {
    min-height: 690px;
  }

  .inner-hero::before {
    background: linear-gradient(180deg, rgba(9,9,9,.2) 0%, rgba(9,9,9,.74) 48%, #090909 82%);
  }

  .inner-hero__media {
    width: 100%;
    height: 62%;
    object-position: center top;
  }

  .inner-hero__content {
    justify-content: flex-end;
    padding-bottom: 4rem;
  }

  .newton-hero .inner-hero__media {
    object-position: 66% 15%;
  }

  .publications-hero .inner-hero__media {
    width: 100%;
    height: 53%;
    padding: 2rem 4rem;
  }

  .inner-image-frame img {
    min-height: 22rem;
  }

  .publication-item {
    grid-template-columns: auto 1fr;
  }

  .publication-item__type {
    grid-column: 2;
  }
}
