/*
 * A2 / IMAYO hybrid variants
 * The source pages remain untouched; this layer only changes the sections
 * explicitly selected for each comparison pattern.
 */

/* Variant 01: A2 header treatment on the original IMAYO page. */
.hybrid-a2-header {
  --header-h: 50px;
}

.hybrid-a2-header .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  min-height: 50px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--brass);
  background: var(--bg);
  backdrop-filter: none;
}

.hybrid-a2-header .brand-mark {
  color: var(--ink);
  font-family: "Shippori Mincho B1", "Shippori Mincho", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.hybrid-a2-header .header-nav {
  gap: clamp(6px, 1.2vw, 13px);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1;
}

.hybrid-a2-header .header-nav a {
  min-height: 26px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
}

.hybrid-a2-header .header-nav span {
  color: var(--brass);
  font-size: 11px;
}

.hybrid-a2-header #exhibition,
.hybrid-a2-header #works {
  scroll-margin-top: 68px;
}

/* Variants 02/03: IMAYO's staggered editorial work rhythm on A2. */
.hybrid-imayo-works #works {
  width: 100%;
  max-width: none;
  padding: clamp(92px, 12vw, 168px) clamp(18px, 4vw, 56px) clamp(116px, 15vw, 210px);
  background:
    linear-gradient(90deg, rgba(23, 21, 17, 0.035) 1px, transparent 1px) 0 0 / 11.111vw 100%,
    var(--bg);
  scroll-margin-top: 72px;
}

.hybrid-imayo-works #works .section-line {
  display: none;
}

.hybrid-imayo-works #works .works-heading {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-left: min(39%, 460px);
  font-family: "Shippori Mincho", "Shippori Mincho B1", serif;
  font-size: clamp(2rem, 4.7vw, 4.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-align: left;
}

.hybrid-imayo-works #works .works-heading::before {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Jost", "IBM Plex Mono", sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.31em;
  content: "WORKS";
}

.hybrid-imayo-works #works .works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.6vw, 34px);
  row-gap: clamp(36px, 5.2vw, 64px);
  width: min(1260px, 100%);
  margin: clamp(36px, 5vw, 62px) auto 0;
}

.hybrid-imayo-works #works .work {
  position: relative;
  min-width: 0;
}

.hybrid-imayo-works #works .work:nth-child(1) {
  z-index: 5;
  grid-column: 5 / 13;
}

.hybrid-imayo-works #works .work:nth-child(2) {
  z-index: 4;
  grid-column: 1 / 6;
  margin-top: clamp(-24px, -1.4vw, -10px);
}

.hybrid-imayo-works #works .work:nth-child(3) {
  z-index: 3;
  grid-column: 7 / 12;
  margin-top: clamp(28px, 4vw, 62px);
}

.hybrid-imayo-works #works .work:nth-child(4) {
  z-index: 2;
  grid-column: 2 / 10;
  margin-top: clamp(-20px, -1.2vw, -10px);
}

.hybrid-imayo-works #works .work:nth-child(5) {
  z-index: 1;
  grid-column: 8 / 13;
  margin-top: clamp(-24px, -1.4vw, -10px);
}

.hybrid-imayo-works #works .work-art {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e9e1d1;
}

.hybrid-imayo-works #works .work-title {
  position: absolute;
  inset: auto;
  z-index: 3;
  margin: 0;
  color: rgba(136, 114, 63, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(2.8rem, 8vw, 8.6rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.08em;
  text-align: left;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  pointer-events: none;
}

.hybrid-imayo-works #works .work:nth-child(1) .work-title {
  left: clamp(-48px, -3vw, -24px);
  bottom: clamp(-30px, -2vw, -18px);
}

.hybrid-imayo-works #works .work:nth-child(2) .work-title {
  right: clamp(-42px, -2.4vw, -18px);
  bottom: clamp(-30px, -2vw, -16px);
}

.hybrid-imayo-works #works .work:nth-child(3) .work-title {
  left: clamp(-44px, -2.8vw, -20px);
  bottom: clamp(-28px, -1.8vw, -14px);
}

.hybrid-imayo-works #works .work:nth-child(4) .work-title {
  right: clamp(-54px, -3vw, -24px);
  bottom: clamp(-34px, -2vw, -18px);
}

.hybrid-imayo-works #works .work:nth-child(5) .work-title {
  left: clamp(-42px, -2.6vw, -18px);
  bottom: clamp(-28px, -1.8vw, -14px);
}

/* Variant 02 only: IMAYO footer hierarchy after the hybrid works section. */
.hybrid-imayo-footer .footer-finale {
  display: block;
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
  padding: clamp(86px, 10vw, 132px) 0 0;
  text-align: left;
}

.hybrid-imayo-footer .hybrid-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.hybrid-imayo-footer .footer-finale-title {
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.28em;
}

.hybrid-imayo-footer .hybrid-footer-meta {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.hybrid-imayo-footer .footer-finale-link {
  justify-self: end;
  color: var(--text);
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.22em;
}

.hybrid-imayo-footer .site-footer {
  width: min(1180px, calc(100% - 96px));
  padding: 64px 0 34px;
  border-top: 0;
  text-align: left;
}

.hybrid-imayo-footer .site-footer .copyright {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

@media (min-width: 760px) {
  .hybrid-a2-header {
    --header-h: 58px;
  }

  .hybrid-a2-header .site-header {
    min-height: 58px;
  }
}

/* IMAYO's two-column exhibition needs more than 760px once its minimum map
   width and section gutters are included. Keep the exact 760px boundary calm. */
@media (min-width: 760px) and (max-width: 899px) {
  .hybrid-a2-header.layout-bold .exhibition-grid {
    grid-template-columns: 1fr;
  }

  .hybrid-a2-header.layout-bold .info-list,
  .hybrid-a2-header.layout-bold .map-area {
    margin-top: 0;
  }
}

@media (max-width: 759px) {
  .hybrid-imayo-works #works {
    padding-right: 18px;
    padding-left: 18px;
    background:
      linear-gradient(90deg, rgba(23, 21, 17, 0.035) 1px, transparent 1px) 0 0 / 25vw 100%,
      var(--bg);
  }

  .hybrid-imayo-works #works .works-heading {
    padding-left: 0;
  }

  .hybrid-imayo-works #works .works-grid {
    display: block;
  }

  .hybrid-imayo-works #works .work:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
    margin-bottom: clamp(38px, 11vw, 62px);
  }

  .hybrid-imayo-works #works .work:nth-child(1),
  .hybrid-imayo-works #works .work:nth-child(4) {
    width: 100%;
  }

  .hybrid-imayo-works #works .work:nth-child(2) {
    width: 88%;
    margin-right: auto;
  }

  .hybrid-imayo-works #works .work:nth-child(3) {
    width: 92%;
    margin-left: auto;
  }

  .hybrid-imayo-works #works .work:nth-child(5) {
    width: 90%;
    margin-bottom: 0;
    margin-left: auto;
  }

  .hybrid-imayo-works #works .work-title {
    font-size: clamp(2.5rem, 18vw, 5.2rem);
  }

  .hybrid-imayo-works #works .work:nth-child(odd) .work-title {
    right: auto;
    bottom: -18px;
    left: -14px;
  }

  .hybrid-imayo-works #works .work:nth-child(even) .work-title {
    right: -14px;
    bottom: -18px;
    left: auto;
  }

  .hybrid-imayo-footer .footer-finale,
  .hybrid-imayo-footer .site-footer {
    width: calc(100% - 36px);
  }

  .hybrid-imayo-footer .hybrid-footer-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hybrid-imayo-footer .footer-finale-link {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .hybrid-a2-header .site-header {
    gap: 12px;
    padding-inline: 16px;
  }

  .hybrid-a2-header .brand-mark {
    font-size: 14px;
  }

  .hybrid-a2-header .header-nav {
    gap: 5px;
    font-size: 10px;
  }

  .hybrid-a2-header .header-nav a {
    letter-spacing: 0.08em;
  }

  .hybrid-imayo-works #works {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hybrid-imayo-footer .footer-finale,
  .hybrid-imayo-footer .site-footer {
    width: calc(100% - 32px);
  }
}
