.page-tools {
  background: #0f1211;
}

.sub-hero {
  position: relative;
  min-height: 610px;
  padding-top: var(--header-height);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(177,151,94,.1), transparent 25%),
    linear-gradient(110deg, #0b0e0d 0 54%, #171a18 54% 100%);
  border-bottom: 1px solid rgba(184,155,94,.14);
}

.sub-hero::before {
  content: "道具棚";
  position: absolute;
  top: 126px;
  left: 4vw;
  color: rgba(230,221,200,.025);
  font-family: var(--font-serif);
  font-size: clamp(110px, 18vw, 260px);
  line-height: 1;
  letter-spacing: .05em;
  white-space: nowrap;
}

.sub-hero__brush {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 47%;
  opacity: .14;
  background:
    repeating-linear-gradient(104deg, transparent 0 10px, rgba(230,221,200,.06) 10px 11px, transparent 11px 25px),
    radial-gradient(ellipse at 50% 50%, #5f665f, transparent 65%);
  filter: contrast(1.2);
}

.sub-hero__inner {
  position: relative;
  display: flex;
  min-height: calc(610px - var(--header-height));
  align-items: center;
}

.sub-hero__copy {
  position: relative;
  z-index: 3;
  width: 55%;
  padding-bottom: 24px;
}

.sub-hero h1 {
  margin-top: 18px;
  color: var(--color-paper);
  font-family: var(--font-serif);
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .1em;
}

.sub-hero__copy > p:not(.eyebrow) {
  margin-top: 25px;
  color: var(--color-muted);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .08em;
}

.breadcrumb {
  display: flex;
  gap: 12px;
  margin-top: 38px;
  color: rgba(230,221,200,.45);
  font-size: 10px;
  letter-spacing: .11em;
}

.breadcrumb a {
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-gold-light);
}

.sub-hero__cat {
  position: absolute;
  right: 4%;
  bottom: -265px;
  z-index: 2;
  width: min(570px, 46vw);
  opacity: .52;
  filter: sepia(.2) contrast(1.1) brightness(.66);
}

.sub-hero__stamp {
  position: absolute;
  right: 2%;
  bottom: 45px;
  z-index: 4;
  display: grid;
  width: 84px;
  height: 96px;
  place-items: center;
  border: 2px solid rgba(151,59,53,.72);
  color: rgba(184,72,64,.82);
  font-family: var(--font-serif);
  transform: rotate(5deg);
}

.sub-hero__stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(151,59,53,.46);
}

.sub-hero__stamp span {
  font-size: 39px;
  line-height: 1;
}

.sub-hero__stamp small {
  position: absolute;
  bottom: 8px;
  font-size: 8px;
  letter-spacing: .16em;
}

.tool-catalog {
  background:
    radial-gradient(circle at 90% 8%, rgba(95,104,96,.09), transparent 25%),
    #0f1211;
}

.catalog-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 50px;
}

.catalog-lead {
  max-width: 62ch;
  margin-top: -22px;
  margin-bottom: 40px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.9;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid rgba(184,155,94,.15);
  border-bottom: 1px solid rgba(184,155,94,.15);
  background: rgba(255,255,255,.015);
}

.category-tabs {
  display: flex;
  gap: 4px;
}

.category-tabs button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: rgba(230,221,200,.55);
  background: transparent;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.category-tabs button span {
  color: rgba(184,155,94,.65);
  font-family: var(--font-sans);
  font-size: 9px;
}

.category-tabs button:hover,
.category-tabs button.is-active {
  color: var(--color-paper);
  background: rgba(184,155,94,.1);
}

.catalog-search {
  position: relative;
  display: block;
  width: min(290px, 100%);
}

.catalog-search input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 15px;
  border: 1px solid rgba(230,221,200,.15);
  border-radius: 0;
  color: var(--color-paper);
  outline: 0;
  background: rgba(4,6,6,.32);
  font-size: 12px;
  letter-spacing: .08em;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.catalog-search input::placeholder {
  color: rgba(230,221,200,.35);
}

.catalog-search input:focus {
  border-color: rgba(215,189,123,.55);
  background: rgba(4,6,6,.55);
}

.catalog-search i,
.catalog-search i::before {
  position: absolute;
  border: 1px solid rgba(215,189,123,.62);
  border-radius: 50%;
}

.catalog-search i {
  top: 13px;
  right: 17px;
  width: 13px;
  height: 13px;
}

.catalog-search i::before {
  content: "";
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: rgba(215,189,123,.62);
  transform: rotate(45deg);
}

.catalog-result {
  margin: 27px 0 22px;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: .1em;
}

.catalog-result strong {
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.catalog-card {
  min-width: 0;
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card__journal-link {
  display: block;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(184,155,94,.16);
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: right;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.catalog-card__journal-link:hover {
  border-color: rgba(215,189,123,.42);
  color: var(--color-gold-light);
}

.catalog-card__link {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 30px 30px 25px;
  overflow: hidden;
  border: 1px solid rgba(184,155,94,.16);
  background:
    linear-gradient(150deg, rgba(255,255,255,.018), transparent 44%),
    #151817;
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.catalog-card__link::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 165px;
  height: 165px;
  border: 1px solid rgba(184,155,94,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 17px rgba(184,155,94,.02), 0 0 0 36px rgba(184,155,94,.015);
  transition: transform var(--transition-base);
}

.catalog-card__link:hover {
  z-index: 2;
  border-color: rgba(215,189,123,.42);
  background: #191d1b;
  transform: translateY(-7px);
}

.catalog-card__link:hover::after {
  transform: scale(1.12);
}

.catalog-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 22px;
  justify-content: space-between;
  align-items: center;
}

.catalog-card__category {
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: .18em;
}

.catalog-card__badge {
  padding: 5px 8px;
  color: rgba(230,221,200,.72);
  background: rgba(120,44,43,.55);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .12em;
}

.catalog-card__badge--gold {
  color: #1a1710;
  background: var(--color-gold);
}

.catalog-card__badge--new {
  background: #6f3430;
}

.catalog-card__symbol {
  display: grid;
  width: 86px;
  height: 95px;
  place-items: center;
  margin-top: 34px;
  border: 1px solid rgba(215,189,123,.29);
  color: var(--color-gold-light);
  background: rgba(5,7,7,.2);
  font-family: var(--font-serif);
  font-size: 38px;
  box-shadow: inset 0 0 0 6px rgba(215,189,123,.025);
  transform: rotate(-2deg);
}

.catalog-card__symbol--code,
.catalog-card__symbol--small {
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.05em;
}

.catalog-card__symbol--small {
  font-size: 21px;
  letter-spacing: 0;
}

.catalog-card__symbol--palette {
  position: relative;
  border: 0;
  background: none;
  box-shadow: none;
}

.catalog-card__symbol--palette b {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
}

.catalog-card__symbol--palette b:nth-child(1) { transform: translate(-15px,-9px); background: rgba(120,44,43,.34); }
.catalog-card__symbol--palette b:nth-child(2) { transform: translate(15px,-9px); background: rgba(83,170,183,.2); }
.catalog-card__symbol--palette b:nth-child(3) { transform: translate(0,16px); background: rgba(215,189,123,.18); }

.catalog-card h3 {
  margin-top: 27px;
  color: var(--color-paper);
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: .08em;
}

.catalog-card p {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.95;
}

.catalog-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(230,221,200,.07);
  color: rgba(230,221,200,.4);
  font-size: 9px;
  letter-spacing: .1em;
}

.catalog-card__bottom i {
  color: var(--color-gold-light);
  font-style: normal;
  font-size: 17px;
  transition: transform var(--transition-base);
}

.catalog-card__link:hover .catalog-card__bottom i {
  transform: translate(4px,-4px);
}

.catalog-empty {
  padding: 70px 20px;
  border: 1px dashed rgba(184,155,94,.22);
  text-align: center;
}

.catalog-empty span {
  display: block;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 54px;
  letter-spacing: .25em;
}

.catalog-empty h3 {
  margin-top: 10px;
  color: var(--color-paper);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.catalog-empty p {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 12px;
}

.request-panel {
  padding-block: 92px;
  border-top: 1px solid rgba(184,155,94,.13);
  background:
    linear-gradient(90deg, rgba(120,44,43,.12), transparent 42%),
    #151817;
}

.request-panel__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.request-panel h2 {
  margin-top: 14px;
  font-size: clamp(30px,4vw,46px);
}

.request-panel__inner > div > p:last-child {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 13px;
}

@media (max-width: 1050px) {
  .tool-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 900px) {
  .sub-hero {
    min-height: 560px;
  }

  .sub-hero__inner {
    min-height: calc(560px - var(--header-height));
  }

  .sub-hero__copy {
    width: 68%;
  }

  .sub-hero__cat {
    right: -11%;
    width: 56vw;
  }

  .catalog-controls {
    display: grid;
  }

  .catalog-search {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .sub-hero {
    min-height: 520px;
    background: linear-gradient(145deg,#0b0e0d,#171a18);
  }

  .sub-hero__inner {
    min-height: calc(520px - var(--header-height));
  }

  .sub-hero__copy {
    width: 100%;
  }

  .sub-hero__cat {
    right: -26%;
    bottom: -215px;
    width: 78vw;
    opacity: .2;
  }

  .sub-hero__stamp {
    display: none;
  }

  .catalog-intro {
    display: block;
  }

  .catalog-intro > p {
    margin-top: 18px;
  }

  .category-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-tabs button {
    flex: 0 0 auto;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card__link {
    min-height: 355px;
  }

  .request-panel__inner {
    display: block;
  }

  .request-panel .button {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .sub-hero h1 {
    font-size: 52px;
  }

  .sub-hero__copy > p:not(.eyebrow) br {
    display: none;
  }

  .catalog-controls {
    margin-inline: -16px;
    border-right: 0;
    border-left: 0;
  }

  .category-tabs button {
    padding-inline: 14px;
  }
}
