/* about.css — About page, pixel-match to Figma frame 1440×2883 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #191818;
}

body {
  background: #191818;
  font-family: "Schoolbell", cursive;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.about-page {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  overflow: clip;
}

/* ===================== NAV ===================== */
.nav {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 1199px;
  max-width: calc(100% - 32px);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.nav-bar,
.nav-panel {
  display: contents;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 56px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.burger,
.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger {
  position: relative;
}
.burger::before {
  position: absolute;
  left: 0;
  top: -7px;
}
.burger::after {
  position: absolute;
  left: 0;
  top: 7px;
}
.nav.open .burger {
  background: transparent;
}
.nav.open .burger::before {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .burger::after {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  font-family: "Schoolbell", cursive;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.064px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 56px;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 16px 32px;
  border-radius: 32px;
  font-family: "Schoolbell", cursive;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.056px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-item.active {
  background: #fff;
  color: #000;
}

.menu-item:not(.active):hover {
  background: rgba(255, 255, 255, 0.06);
}

.social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 36px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sm-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.sm-btn img {
  display: block;
}

/* ===================== HERO ===================== */
.hero {
  display: flex;
  align-items: flex-start;
  padding: 152px 120px 0;
}

.hero-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: -0.58px;
  color: #fff;
  position: sticky;
  top: 178px;
  width: 387px;
  flex-shrink: 0;
  margin-top: 26px;
}

.hero-content {
  margin-left: auto;
  width: 793px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.hero-photo {
  width: 100%;
  height: 594px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bio a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bio-lead {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: -0.096px;
  color: #fff;
}

.bio-lead em,
.bio-lead i {
  font-family: "Poppins", sans-serif;
  font-style: italic;
}

.bio-body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.064px;
  color: #fff;
}

/* ===================== BOOKS ===================== */
.books-section {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.books-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 120px;
}

.section-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: -0.58px;
  color: #fff;
}

.books-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 4px;
  border-radius: 60px;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.books-nav--bottom {
  display: none;
}

.book-more {
  display: none;
}

.books-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 36px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.books-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.books-counter {
  font-family: "Schoolbell", cursive;
  font-size: 14px;
  letter-spacing: -0.056px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.chevron {
  display: inline-block;
  width: 11.3px;
  height: 11.3px;
  background: center / contain no-repeat url("assets/diamond.svg");
}

.chevron.right {
  transform: rotate(45deg);
}

.chevron.left {
  transform: rotate(225deg);
}

.books-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.books-track {
  display: flex;
  gap: 64px;
  margin-left: 120px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.book {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.book-cover {
  width: 285px;
  height: 430px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  width: 375px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 0;
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Schoolbell", cursive;
  font-size: 16px;
  letter-spacing: -0.064px;
}

.book-publisher,
.book-date {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.book-sep {
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

.book-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: -0.36px;
  color: #fff;
}

.book-desc {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  flex: 1;
}

.book-desc em {
  font-style: italic;
}

.book-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.book-links {
  display: flex;
  gap: 16px;
}

.book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 32px;
  font-family: "Schoolbell", cursive;
  font-size: 14px;
  letter-spacing: -0.056px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.book-btn--primary {
  background: #fff;
  color: #000;
}

.book-btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.book-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
}

.book-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.books-fade {
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.books-fade--left {
  left: 0;
  background: linear-gradient(to right, #191818, transparent);
}

.books-fade--right {
  right: 0;
  background: linear-gradient(to left, #191818, transparent);
}

/* ===================== MEDIA ===================== */
.media-section {
  margin-top: 86px;
}

.media-section .section-title {
  padding: 0 120px;
  margin-bottom: 32px;
}

.media-logos {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  padding: 31px 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 86px;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Logo buttons --- */
.media-logo-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.media-logo-btn:hover,
.media-logo-btn:focus-visible,
.media-logo-btn.is-active {
  opacity: 1;
}

.media-logo-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 6px;
  border-radius: 4px;
}

.media-logo-btn img {
  display: block;
  height: 54px;
  width: auto;
  pointer-events: none;
}

/* --- Publication card --- */
.media-card {
  position: absolute;
  bottom: calc(100% - 16px);
  left: 0;
  z-index: 20;
  width: 380px;
  background: #000;
  border-radius: 20px;
  padding: 28px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.media-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.media-card__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.media-card__cta {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.media-card__link:hover .media-card__cta {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.media-card__logo {
  height: 28px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left;
  opacity: 0.6;
}

.media-card__meta {
  font-family: "Schoolbell", cursive;
  font-size: 13px;
  letter-spacing: -0.04px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.media-card__title {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.22px;
  color: #fff;
}

.media-card__excerpt {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================== FOOTER ===================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 86px;
  padding: 32px 120px;
  font-family: "Schoolbell", cursive;
  font-size: 14px;
  letter-spacing: -0.056px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* ===================== FOCUS ===================== */
.menu-item:focus-visible,
.sm-btn:focus-visible,
.books-nav-btn:focus-visible,
.book-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
  .about-page {
    overflow-x: hidden;
  }

  .nav {
    left: 0;
    right: 0;
    top: 0;
    width: auto;
    max-width: none;
    transform: none;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    transition: background-color 0.25s ease;
  }
  .nav.open {
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
  }
  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0 16px;
    transition: max-height 0.3s ease, opacity 0.25s ease,
      visibility 0.25s ease, padding 0.3s ease;
  }
  .nav.open .nav-panel {
    max-height: 70vh;
    opacity: 1;
    visibility: visible;
    padding: 0 16px 28px;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .menu-item {
    width: 100%;
  }

  .social {
    justify-content: space-between;
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 80px 20px 0;
  }

  .hero-title {
    position: relative;
    top: auto;
    width: auto;
    flex-shrink: unset;
    margin-top: 0;
    font-size: 40px;
    margin-bottom: 24px;
  }

  .hero-content {
    width: 100%;
    margin-left: 0;
    gap: 32px;
  }

  .hero-photo {
    height: 400px;
    border-radius: 24px;
  }

  .bio-lead {
    font-size: 18px;
  }

  .bio-body {
    font-size: 14px;
  }

  /* Books */
  .books-section {
    margin-top: 40px;
    gap: 24px;
  }

  .books-header {
    padding: 0 20px;
  }

  .books-header .books-nav {
    display: none;
  }

  .books-section .books-nav--bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: auto;
    margin: 0 20px;
    padding: 2px 8px;
    gap: 0;
  }

  .books-nav--bottom .books-nav-btn:first-child {
    justify-self: start;
  }

  .books-nav--bottom .books-counter {
    justify-self: center;
  }

  .books-nav--bottom .books-nav-btn:last-child {
    justify-self: end;
  }

  .section-title {
    font-size: 40px;
  }

  .books-track {
    margin-left: 20px;
    gap: 32px;
  }

  .book {
    flex-direction: column;
    width: 260px;
  }

  .book-cover {
    width: 260px;
    height: 390px;
  }

  .book-info {
    width: 260px;
    padding: 0;
    gap: 12px;
  }

  .book-title {
    font-size: 28px;
  }

  .book-desc {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.35s ease;
    max-height: 5.6em;
  }

  .book-desc.is-expanded {
    -webkit-line-clamp: unset;
    max-height: 40em;
  }

  .book-more {
    display: block;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Schoolbell", cursive;
    font-size: 14px;
    letter-spacing: -0.056px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
  }

  .book-links {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .book-links .book-btn {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 12px;
    gap: 6px;
  }

  .books-fade {
    width: 20px;
  }

  /* Media */
  .media-section {
    margin-top: 40px;
    padding: 0 20px;
  }

  .media-logos {
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .marquee__track {
    gap: 40px;
  }

  .media-logo-btn img {
    height: 36px;
  }

  .media-card {
    width: 300px;
    padding: 20px;
    border-radius: 16px;
    bottom: calc(100% - 12px);
  }

  .media-card__title {
    font-size: 18px;
  }

  .media-card__excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  /* Footer */
  .footer {
    padding: 24px 20px;
    font-size: 12px;
    gap: 16px;
  }
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
