/* =========================================================
   CATEGORY PAGE
========================================================= */

.category-page {
  min-height: calc(100vh - 76px);

  padding:
    26px 0 28px;
}


/* =========================================================
   CATEGORY HEADER
========================================================= */

.category-page-head {
  display: grid;

  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(340px, .62fr);

  gap:
    55px;

  align-items:
    end;

  padding-bottom:
    20px;

  border-bottom:
    1px solid var(--line);
}


.category-page-head h1 {
  max-width:
    1000px;

  margin-top:
    8px;

  font-family:
    "Fraunces",
    serif;

  font-size:
    clamp(
      4.2rem,
      6.8vw,
      7.4rem
    );

  line-height:
    .84;

  letter-spacing:
    -.06em;

  font-weight:
    500;
}


.category-page-description {
  max-width:
    460px;

  color:
    #b8b3b8;

  font-size:
    1.05rem;

  line-height:
    1.75;

  letter-spacing:
    .01em;
}


/* =========================================================
   PROJECT CAROUSEL
========================================================= */

.project-carousel {
  position:
    relative;

  margin-top:
    20px;
}


/* =========================================================
   CAROUSEL WINDOW
========================================================= */

.carousel-window {
  width:
    calc(100% - 54px);

  margin:
    0 auto;

  overflow:
    hidden;
}


.carousel-track {
  width:
    100%;

  display:
    flex;

  transition:
    transform .55s
    cubic-bezier(
      .22,
      1,
      .36,
      1
    );
}


.carousel-slide {
  flex:
    0 0 100%;

  width:
    100%;

  min-width:
    100%;
}


/* =========================================================
   PROJECT GRID
========================================================= */

.carousel-project {
  width:
    100%;

  height:
    calc(100vh - 285px);

  min-height:
    620px;

  max-height:
    820px;

  display:
    grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(420px, .78fr);

  overflow:
    hidden;

  border:
    1px solid var(--line);

  background:
    #0d0d11;

  color:
    var(--text);

  transition:
    border-color .25s ease;
}


.carousel-project:hover {
  border-color:
    rgba(255,255,255,.28);
}


/* =========================================================
   IMAGE SIDE
========================================================= */

.carousel-project-image {
  position:
    relative;

  height:
    100%;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  overflow:
    hidden;

  background:
    #21191b;
}


.carousel-project-image::before {
  content:
    "";

  position:
    absolute;

  inset:
    0;

  z-index:
    1;

  pointer-events:
    none;

  background:
    radial-gradient(
      circle at center,
      rgba(255,255,255,.025),
      transparent 70%
    );
}


.carousel-project-image img {
  position:
    relative;

  z-index:
    2;

  width:
    100%;

  height:
    100%;

  object-fit:
    contain;

  cursor:
    zoom-in;

  user-select:
    none;

  -webkit-user-select:
    none;

  -webkit-user-drag:
    none;

  transition:
    transform .45s ease;
}


.carousel-project:hover
.carousel-project-image img {
  transform:
    scale(1.025);
}


/* =========================================================
   CONTENT SIDE
========================================================= */

.carousel-project-content {
  height:
    100%;

  padding:
    58px 60px;

  display:
    flex;

  flex-direction:
    column;

  justify-content:
    center;

  border-left:
    1px solid var(--line);

  background:
    #0d0d11;
}


/* =========================================================
   PROJECT META
========================================================= */

.category-project-meta {
  color:
    var(--red);

  font-family:
    "Fira Code",
    monospace;

  font-size:
    .76rem;

  letter-spacing:
    .08em;

  font-weight:
    500;
}


/* =========================================================
   PROJECT TITLE
========================================================= */

.carousel-project-content h2 {
  max-width:
    460px;

  margin-top:
    16px;

  font-family:
    "Fraunces",
    serif;

  font-size:
    clamp(
      4.4rem,
      5.8vw,
      6.7rem
    );

  line-height:
    .86;

  letter-spacing:
    -.055em;

  font-weight:
    500;
}


/* =========================================================
   PROJECT DESCRIPTION
========================================================= */

.carousel-project-content p {
  max-width:
    460px;

  margin-top:
    22px;

  color:
    #b8b3b8;

  font-size:
    1.12rem;

  line-height:
    1.75;

  letter-spacing:
    .005em;
}


/* =========================================================
   PROJECT LINK
========================================================= */

.carousel-project-link {
  display:
    inline-flex;

  width:
    fit-content;

  margin-top:
    26px;

  color:
    var(--lime);

  font-size:
    .95rem;

  font-weight:
    600;

  letter-spacing:
    .01em;

  transition:
    transform .2s ease,
    opacity .2s ease;
}


.carousel-project:hover
.carousel-project-link {
  transform:
    translateX(5px);
}


/* =========================================================
   ARROWS
========================================================= */

.carousel-arrow {
  position:
    absolute;

  top:
    50%;

  z-index:
    10;

  width:
    58px;

  height:
    58px;

  margin-top:
    -29px;

  padding:
    0;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid rgba(255,255,255,.22);

  border-radius:
    50%;

  background:
    #101014;

  color:
    white;

  cursor:
    pointer;

  font-size:
    1.2rem;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease,
    border-color .2s ease;
}


.carousel-prev {
  left:
    -12px;
}


.carousel-next {
  right:
    -12px;
}


.carousel-arrow:hover {
  background:
    var(--lime);

  border-color:
    var(--lime);

  color:
    #111;

  transform:
    scale(1.08);
}


.carousel-arrow.is-hidden {
  opacity:
    0;

  visibility:
    hidden;

  pointer-events:
    none;
}


/* =========================================================
   CAROUSEL FOOTER
========================================================= */

.carousel-footer {
  width:
    calc(100% - 54px);

  margin:
    11px auto 0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    20px;
}


.carousel-counter {
  color:
    var(--muted);

  font-family:
    "Fira Code",
    monospace;

  font-size:
    .68rem;

  letter-spacing:
    .07em;
}


/* =========================================================
   DOTS
========================================================= */

.carousel-dots {
  display:
    flex;

  align-items:
    center;

  gap:
    7px;
}


.carousel-dot {
  width:
    6px;

  height:
    6px;

  padding:
    0;

  border:
    0;

  border-radius:
    50%;

  background:
    #4a464b;

  cursor:
    pointer;

  transition:
    width .22s ease,
    background .22s ease,
    border-radius .22s ease;
}


.carousel-dot.active {
  width:
    25px;

  border-radius:
    999px;

  background:
    var(--red);
}


/* =========================================================
   CATEGORY SWITCHER
========================================================= */

.category-switcher {
  width:
    calc(100% - 54px);

  margin:
    15px auto 0;

  padding-top:
    14px;

  border-top:
    1px solid var(--line);

  display:
    grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items:
    center;

  gap:
    20px;
}


/* =========================================================
   CATEGORY SWITCH LINKS
========================================================= */

.category-switch {
  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  color:
    var(--muted);

  transition:
    color .2s ease,
    transform .2s ease;
}


.category-switch:hover {
  color:
    white;

  transform:
    translateX(-4px);
}


.category-switch span {
  color:
    var(--red);

  font-family:
    "Fira Code",
    monospace;

  font-size:
    .62rem;

  letter-spacing:
    .06em;
}


.category-switch strong {
  margin-top:
    3px;

  font-family:
    "Fraunces",
    serif;

  font-size:
    1.55rem;

  line-height:
    1;

  font-weight:
    500;
}


.category-switch-next {
  text-align:
    right;

  align-items:
    flex-end;
}


.category-switch-next:hover {
  transform:
    translateX(4px);
}


.category-position {
  color:
    var(--muted);

  font-family:
    "Fira Code",
    monospace;

  font-size:
    .66rem;

  letter-spacing:
    .07em;
}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media(min-width: 1500px) {

  .category-page {
    padding-top:
      30px;
  }


  .category-page-head {
    grid-template-columns:
      minmax(0, 1.45fr)
      minmax(400px, .58fr);
  }


  .category-page-description {
    max-width:
      500px;

    font-size:
      1.08rem;
  }


  .carousel-project {
    height:
      calc(100vh - 270px);

    min-height:
      680px;

    max-height:
      880px;

    grid-template-columns:
      minmax(0, 1.55fr)
      minmax(450px, .78fr);
  }


  .carousel-window,
  .carousel-footer,
  .category-switcher {
    width:
      calc(100% - 40px);
  }


  .carousel-project-content {
    padding:
      64px 68px;
  }


  .carousel-project-content p {
    font-size:
      1.17rem;
  }


  .carousel-project-link {
    font-size:
      1rem;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media(max-width: 1000px) {

  .category-page {
    padding:
      26px 0 50px;
  }


  .category-page-head {
    grid-template-columns:
      1fr;

    gap:
      16px;
  }


  .category-page-description {
    max-width:
      620px;

    font-size:
      1rem;
  }


  .carousel-window {
    width:
      calc(100% - 60px);
  }


  .carousel-project {
    height:
      auto;

    min-height:
      0;

    max-height:
      none;

    grid-template-columns:
      1fr;
  }


  .carousel-project-image {
    height:
      520px;
  }


  .carousel-project-content {
    height:
      auto;

    padding:
      34px;

    border-left:
      0;

    border-top:
      1px solid var(--line);
  }


  .carousel-project-content h2 {
    max-width:
      100%;

    font-size:
      clamp(
        3.8rem,
        8vw,
        5.5rem
      );
  }


  .carousel-project-content p {
    max-width:
      620px;

    font-size:
      1.03rem;
  }


  .carousel-footer,
  .category-switcher {
    width:
      calc(100% - 60px);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width: 650px) {

  .category-page {
    min-height:
      auto;

    padding:
      22px 0 42px;
  }


  .category-page-head {
    padding-bottom:
      18px;
  }


  .category-page-head h1 {
    font-size:
      clamp(
        3.2rem,
        15vw,
        4.8rem
      );

    line-height:
      .88;
  }


  .category-page-description {
    max-width:
      100%;

    font-size:
      .95rem;

    line-height:
      1.7;
  }


  .project-carousel {
    margin-top:
      18px;
  }


  .carousel-window {
    width:
      100%;
  }


  .carousel-project {
    width:
      100%;

    display:
      grid;

    grid-template-columns:
      1fr;

    min-height:
      0;
  }


  .carousel-project-image {
    height:
      370px;
  }


  .carousel-project-content {
    padding:
      26px 24px 30px;
  }


  .category-project-meta {
    font-size:
      .68rem;
  }


  .carousel-project-content h2 {
    margin-top:
      12px;

    font-size:
      3rem;

    line-height:
      .9;
  }


  .carousel-project-content p {
    margin-top:
      16px;

    font-size:
      1rem;

    line-height:
      1.7;
  }


  .carousel-project-link {
    margin-top:
      20px;

    font-size:
      .88rem;
  }


  .carousel-prev {
    left:
      10px;
  }


  .carousel-next {
    right:
      10px;
  }


  .carousel-arrow {
    top:
      185px;

    width:
      44px;

    height:
      44px;

    margin-top:
      -22px;

    background:
      rgba(10,10,13,.82);

    backdrop-filter:
      blur(8px);
  }


  .carousel-footer {
    width:
      100%;

    margin-top:
      12px;
  }


  .category-switcher {
    width:
      100%;

    margin-top:
      20px;

    grid-template-columns:
      1fr 1fr;

    gap:
      16px;
  }


  .category-position {
    display:
      none;
  }


  .category-switch strong {
    font-size:
      1.3rem;
  }


  .category-switch span {
    font-size:
      .56rem;
  }

}



/* =========================================================
   MANY CAROUSEL DOTS
========================================================= */

.carousel-dots {
  max-width: 420px;

  display: flex;
  flex-wrap: wrap;

  justify-content: center;

  gap: 7px;
}

.carousel-dot {
  flex: 0 0 auto;
}


@media (max-width: 700px) {

  .carousel-footer {
    align-items: flex-start;
    flex-direction: column;

    gap: 14px;
  }

  .carousel-dots {
    max-width: 100%;

    justify-content: flex-start;
  }

}


/* =========================================================
   LOGO PAGE FIX — WIDER CONTENT + RESPONSIVE
========================================================= */

.logo-page .container {
  max-width: 1560px;
}

.logo-page .project-carousel {
  margin-top: 28px;
}

.logo-page .carousel-window {
  overflow: hidden;
}

.logo-page .carousel-slide {
  min-height: 760px;
  height: auto;
}

.logo-page .carousel-project {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(520px, 0.95fr);
  min-height: 760px;
  height: auto;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 17, 0.95);
}

.logo-page .logo-project-image {
  min-width: 0;
  min-height: 760px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(49, 28, 34, 0.92) 0%,
    rgba(20, 15, 20, 0.98) 100%
  );
}

.logo-page .logo-project-image img {
  width: 100%;
  max-width: 760px;
  height: 100%;
  max-height: 700px;
  object-fit: contain;
  display: block;
  background: #f2f2f2;
}

.logo-page .logo-project-content {
  min-width: 0;
  min-height: 760px;
  height: auto;
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}

.logo-page .category-project-meta {
  display: inline-block;
  margin-bottom: 18px;
}

.logo-page .logo-project-title {
  margin: 0 0 28px;
  max-width: 100%;
  font-family: "Fraunces", serif;
  font-size: clamp(3.2rem, 4.4vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: normal;
  overflow: visible;
  word-break: normal;
}

.logo-page .logo-project-title span {
  display: block;
}

.logo-page .logo-project-title span:last-child {
  font-size: 0.78em;
  line-height: 0.95;
}

.logo-page .carousel-project-content p {
  max-width: 520px;
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.logo-page .carousel-project-link {
  display: none;
}

.logo-page .carousel-arrow {
  visibility: hidden;
  pointer-events: none;
}

.logo-page .carousel-footer {
  margin-top: 14px;
}


/* =========================================================
   LARGE TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 1360px) {
  .logo-page .container {
    max-width: 1320px;
  }

  .logo-page .carousel-project {
    grid-template-columns: minmax(0, 1.1fr) minmax(460px, 0.9fr);
    min-height: 700px;
  }

  .logo-page .logo-project-image,
  .logo-page .logo-project-content,
  .logo-page .carousel-slide {
    min-height: 700px;
  }

  .logo-page .logo-project-content {
    padding: 56px 44px;
  }

  .logo-page .logo-project-title {
    font-size: clamp(2.8rem, 4.2vw, 4.8rem);
  }

  .logo-page .carousel-project-content p {
    max-width: 100%;
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .logo-page .carousel-project {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .logo-page .carousel-slide {
    min-height: auto;
  }

  .logo-page .logo-project-image {
    min-height: 460px;
    padding: 24px;
  }

  .logo-page .logo-project-image img {
    max-height: 420px;
    max-width: 100%;
  }

  .logo-page .logo-project-content {
    min-height: auto;
    padding: 38px 28px 42px;
  }

  .logo-page .logo-project-title {
    font-size: clamp(2.7rem, 7vw, 4.3rem);
    line-height: 0.92;
    margin-bottom: 22px;
  }

  .logo-page .carousel-project-content p {
    font-size: 0.98rem;
    line-height: 1.75;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {
  .logo-page .container {
    max-width: calc(100vw - 28px);
  }

  .logo-page .logo-project-image {
    min-height: 320px;
    padding: 18px;
  }

  .logo-page .logo-project-image img {
    max-height: 300px;
  }

  .logo-page .logo-project-content {
    padding: 26px 18px 30px;
  }

  .logo-page .logo-project-title {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
  }

  .logo-page .logo-project-title span:last-child {
    font-size: 0.82em;
  }

  .logo-page .carousel-project-content p {
    font-size: 0.94rem;
    line-height: 1.7;
  }
}


/* =========================================================
   MASCOT CATEGORY
========================================================= */


/* =========================================================
   PROJECT
========================================================= */

.mascot-project {
  padding: 88px 0;

  border-top:
    1px solid var(--line);
}

.mascot-project:first-of-type {
  padding-top:
    55px;
}


.mascot-project-head {
  display:
    grid;

  grid-template-columns:
    1.05fr .95fr;

  gap:
    70px;

  align-items:
    end;

  margin-bottom:
    34px;
}


.mascot-project-head h2 {
  margin-top:
    9px;

  font-family:
    "Fraunces",
    serif;

  font-size:
    clamp(
      3.7rem,
      6vw,
      6rem
    );

  font-weight:
    500;

  line-height:
    .9;

  letter-spacing:
    -.055em;
}


.mascot-project-head h2 em {
  color:
    var(--red);

  font-weight:
    400;
}


.mascot-project-description > span {
  display:
    block;

  margin-bottom:
    12px;

  color:
    var(--lime);

  font-family:
    "Fira Code",
    monospace;

  font-size:
    .68rem;

  letter-spacing:
    .07em;
}


.mascot-project-description p {
  margin-bottom:
    11px;

  color:
    var(--muted);

  font-size:
    .96rem;

  line-height:
    1.75;
}


/* =========================================================
   MASCOT READER
========================================================= */

.mascot-reader {
  overflow:
    hidden;

  border:
    1px solid var(--line);

  border-radius:
    28px;

  background:
    var(--panel);
}


.mascot-reader-top {
  min-height:
    82px;

  padding:
    17px 20px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    20px;

  border-bottom:
    1px solid var(--line);
}


.mascot-reader-top > div:first-child {
  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}


.mascot-reader-top span {
  color:
    var(--red);

  font-family:
    "Fira Code",
    monospace;

  font-size:
    .64rem;

  letter-spacing:
    .07em;
}


.mascot-reader-top strong {
  font-family:
    "Fraunces",
    serif;

  font-size:
    1.2rem;

  font-weight:
    500;
}


/* controls */

.mascot-reader-controls {
  display:
    flex;

  align-items:
    center;

  gap:
    10px;
}


.mascot-reader-arrow {
  width:
    44px;

  height:
    44px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--line);

  border-radius:
    50%;

  background:
    transparent;

  color:
    white;

  cursor:
    pointer;

  transition:
    .2s;
}


.mascot-reader-arrow:hover {
  background:
    var(--lime);

  border-color:
    var(--lime);

  color:
    #111;
}


.mascot-reader-arrow:disabled {
  opacity:
    .3;

  cursor:
    default;
}


.mascot-reader-counter {
  min-width:
    68px;

  color:
    #d7d1d3 !important;

  font-family:
    "Fira Code",
    monospace;

  font-size:
    .72rem !important;

  text-align:
    center;
}


/* =========================================================
   SLIDER
========================================================= */

.mascot-slider {
  display:
    flex;

  gap:
    18px;

  overflow-x:
    auto;

  padding:
    22px;

  scroll-snap-type:
    x mandatory;

  scroll-behavior:
    smooth;

  overscroll-behavior-x:
    contain;

  scrollbar-width:
    none;

  touch-action:
    pan-x pan-y;

  cursor:
    grab;
}


.mascot-slider::-webkit-scrollbar {
  display:
    none;
}


.mascot-slider.is-dragging {
  cursor:
    grabbing;

  scroll-behavior:
    auto;

  user-select:
    none;
}


.mascot-slide {
  flex:
    0 0 calc(100% - 90px);

  min-width:
    0;

  position:
    relative;

  margin:
    0;

  padding:
    10px;

  background:
    var(--paper);

  scroll-snap-align:
    center;

  box-shadow:
    0 16px 40px rgba(0,0,0,.18);
}


.mascot-slide > span {
  position:
    absolute;

  top:
    17px;

  left:
    17px;

  z-index:
    3;

  padding:
    5px 8px;

  background:
    rgba(11,11,14,.88);

  color:
    var(--lime);

  font-family:
    "Fira Code",
    monospace;

  font-size:
    .62rem;
}


.mascot-slide img {
  width:
    100%;

  height:
    min(70vh, 720px);

  object-fit:
    contain;

  cursor:
    zoom-in;
}


/* =========================================================
   PROGRESS
========================================================= */

.mascot-progress {
  height:
    3px;

  margin:
    0 22px 22px;

  overflow:
    hidden;

  background:
    rgba(255,255,255,.08);
}


.mascot-progress span {
  display:
    block;

  height:
    100%;

  background:
    var(--lime);

  transform:
    translateX(0);

  transition:
    transform .25s ease;
}


/* =========================================================
   SINGLE MASCOT
========================================================= */

.mascot-single {
  min-height:
    600px;

  padding:
    30px;

  display:
    grid;

  place-items:
    center;

  background:
    var(--panel);

  border:
    1px solid var(--line);

  border-radius:
    28px;
}


.mascot-single img {
  width:
    100%;

  max-height:
    650px;

  object-fit:
    contain;

  cursor:
    zoom-in;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

  .mascot-project-head {
    grid-template-columns:
      1fr;

    gap:
      28px;
  }


  .mascot-slide {
    flex-basis:
      calc(100% - 55px);
  }


  .mascot-single {
    min-height:
      500px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .mascot-project {
    padding:
      64px 0;
  }


  .mascot-project-head h2 {
    font-size:
      clamp(
        3rem,
        14vw,
        4.4rem
      );
  }


  .mascot-reader {
    border-radius:
      20px;
  }


  .mascot-reader-top {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .mascot-reader-controls {
    width:
      100%;

    justify-content:
      space-between;
  }


  .mascot-slider {
    gap:
      10px;

    padding:
      12px;
  }


  .mascot-slide {
    flex-basis:
      92%;

    padding:
      6px;
  }


  .mascot-slide img {
    height:
      auto;

    max-height:
      70vh;
  }


  .mascot-progress {
    margin:
      0 12px 14px;
  }


  .mascot-single {
    min-height:
      360px;

    padding:
      18px;

    border-radius:
      20px;
  }


  .mascot-single img {
    max-height:
      420px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 460px) {

  .mascot-slide {
    flex-basis:
      96%;
  }

}