/*
  Theme: daylight on a town you can already walk into.
  Accent is the STAGE 02 card colour (#f6d675); the gradient opens toward the
  brighter end of the same hue, like sun coming up over the street.
*/
:root {
  --tools-sun: #f6d675;
  --tools-sun-rgb: 246, 214, 117;
  --tools-sun-deep: #d9a92f;
  --tools-sun-deep-rgb: 217, 169, 47;
  --tools-sun-light: #ffeaa8;
  /* Same hue pushed dark enough to clear 4.5:1 on the cream panels. */
  --tools-sun-ink: #8a6410;
  --tools-sun-ink-rgb: 138, 100, 16;
  --tools-sun-gradient: linear-gradient(145deg, var(--tools-sun-deep) 0%, var(--tools-sun-deep) 52%, var(--tools-sun) 80%, var(--tools-sun-light) 100%);
}

.tools-page {
  min-height: 100%;
  color: var(--paper);
  background: var(--night);
}

/* Transparent like the AI-staff page, so the photo starts at the very top. */
.tools-page .header {
  position: absolute;
}

.tools-page h1,
.tools-page h2,
.tools-page p,
.tools-page li,
.tools-page button,
.tools-page textarea {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  z-index: 400;
  top: 12px;
  left: 12px;
  padding: 13px 18px;
  color: #17373d;
  background: var(--paper);
  box-shadow: 0 12px 26px rgba(0, 4, 9, 0.28);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  outline: 3px solid var(--tools-sun);
  outline-offset: 3px;
  transform: translateY(0);
}

/* 道具の信号所 */
/* Same build as the AI-staff arrival: photo from the very top, copy centred. */
.tools-hero {
  position: relative;
  isolation: isolate;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #020b14;
}

.tools-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.18;
  background: linear-gradient(112deg, transparent 41%, rgba(var(--tools-sun-rgb), 0.14) 49.8%, rgba(var(--tools-sun-deep-rgb), 0.1) 50.2%, transparent 58%);
  background-size: 250% 100%;
  pointer-events: none;
}


.tools-hero__glow {
  position: absolute;
  z-index: -1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
}

.tools-hero__glow--one {
  top: 23%;
  left: 8%;
  background: var(--tools-sun);
  box-shadow: 0 0 22px 7px rgba(var(--tools-sun-rgb), 0.28);
}

.tools-hero__glow--two {
  right: 9%;
  bottom: 16%;
  background: var(--tools-sun-deep);
  box-shadow: 0 0 23px 8px rgba(var(--tools-sun-deep-rgb), 0.26);
}

.tools-hero__inner {
  width: min(calc(100% - 64px), 1280px);
  min-height: 640px;
  margin: 80px auto 0;
  padding: clamp(68px, 9vh, 110px) 0 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* One column now that the shelf itself lives in the next chapter. */
.tools-heading {
  width: min(610px, 52vw);
}

.tools-heading h1 {
  max-width: 820px;
  font-size: clamp(42px, 4.6vw, 66px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.015em;
  text-shadow: 0 3px 28px rgba(0, 3, 7, 0.5);
}

.tools-heading h1 em {
  color: var(--tools-sun);
  font-style: normal;
  text-shadow: 0 5px 34px rgba(var(--tools-sun-rgb), 0.28);
}

.tools-heading p {
  max-width: 44ch;
  margin-top: 30px;
  color: rgba(241, 245, 238, 0.88);
  font-size: 16px;
  line-height: 2.05;
}

/* Same call-to-action build as the other two service pages. */
.tools-primary {
  position: relative;
  min-width: 260px;
  min-height: 56px;
  margin-top: 36px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  color: #2b1f04;
  background: var(--tools-sun-gradient);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 20px 48px rgba(var(--tools-sun-deep-rgb), 0.26), inset 0 1px rgba(255, 255, 255, 0.3);
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1), box-shadow 220ms ease;
}

.tools-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.55) 48%, transparent 70%);
  pointer-events: none;
  transform: translateX(-120%);
}

.tools-primary:hover::before,
.tools-primary:focus-visible::before { animation: tools-button-pass 620ms cubic-bezier(.16, 1, .3, 1); }

@keyframes tools-button-pass { to { transform: translateX(120%); } }

.tools-primary > * { position: relative; z-index: 1; }
.tools-primary:hover,
.tools-primary:focus-visible {
  box-shadow: 0 24px 56px rgba(var(--tools-sun-deep-rgb), 0.34), inset 0 1px rgba(255, 255, 255, 0.36);
  transform: translateY(-3px);
}
.tools-primary:hover .arrow,
.tools-primary:focus-visible .arrow { transform: translateX(5px); }
.tools-primary .arrow { transition: transform 260ms ease; }
.tools-primary:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }
.tools-primary:active { transform: translateY(1px); }

.tools-hero__facts {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  color: rgba(231, 241, 238, 0.72);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.tools-hero__facts span {
  min-height: 34px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-left: 1px solid rgba(var(--tools-sun-rgb), 0.5);
  background: rgba(3, 15, 25, 0.34);
}

.tools-hero__facts span:first-child { padding-left: 0; border-left: 0; }

.tools-hero__signal {
  position: absolute;
  z-index: 1;
  top: 23%;
  right: clamp(34px, 5vw, 86px);
  width: 58px;
  height: 44px;
  border-top: 1px solid rgba(var(--tools-sun-rgb), 0.52);
  border-right: 1px solid rgba(var(--tools-sun-rgb), 0.52);
  pointer-events: none;
}

.tools-hero__signal::before {
  content: "READY TO USE";
  position: absolute;
  top: -17px;
  right: 0;
  color: rgba(240, 242, 232, 0.62);
  font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
}

.tools-hero__signal i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: var(--tools-sun);
  box-shadow: 0 0 14px rgba(var(--tools-sun-rgb), 0.9);
  animation: tools-signal-rise 3.9s ease-in-out infinite;
}

.tools-hero__signal i:nth-child(2) { animation-delay: -1.3s; }
.tools-hero__signal i:nth-child(3) { animation-delay: -2.6s; }

@keyframes tools-signal-rise {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  22% { opacity: 1; }
  70% { opacity: 0.5; transform: translate(-38px, -30px); }
  99% { opacity: 0; transform: translate(-52px, -42px); }
}

.tools-hero__next {
  position: absolute;
  z-index: 2;
  right: clamp(32px, 5vw, 76px);
  bottom: 30px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(236, 242, 237, 0.75);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.tools-hero__next i {
  position: relative;
  width: 1px;
  height: 30px;
  overflow: hidden;
  background: rgba(247, 242, 232, 0.3);
}

.tools-hero__next i::after {
  content: "";
  position: absolute;
  inset: -50% 0 auto;
  height: 45%;
  background: var(--tools-sun);
  animation: tools-next-fall 2s ease-in-out infinite;
}

.tools-hero__next:hover,
.tools-hero__next:focus-visible { color: var(--paper); }

@keyframes tools-next-fall {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(340%); opacity: 0; }
}

/* The shelf chapter that now holds the tools themselves. */
.tool-picker {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 10svh, 118px) clamp(24px, 5vw, 72px) clamp(88px, 11svh, 128px);
  background:
    radial-gradient(ellipse at 18% 12%, rgba(var(--tools-sun-rgb), 0.07), transparent 32%),
    radial-gradient(ellipse at 86% 82%, rgba(var(--tools-sun-deep-rgb), 0.06), transparent 30%),
    #02101c;
}

.tool-picker__inner {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.tool-picker .chapter-heading {
  max-width: 780px;
  margin-bottom: clamp(42px, 5svh, 62px);
}

.tool-picker .chapter-heading h2 {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.45;
}

.tool-picker .chapter-heading h2 em {
  color: var(--tools-sun);
  font-style: normal;
}

.tool-picker .chapter-heading > p {
  max-width: 60ch;
  margin-top: 20px;
  color: rgba(226, 244, 248, 0.79);
  font-size: 16px;
  line-height: 1.95;
}

@media (prefers-reduced-motion: reduce) {
  .tools-hero__signal i,
  .tools-hero__next i::after { animation: none; }
  .tools-hero__signal i { opacity: 0.9; }
}

.tool-selector {
  --tool-count: 3;
  --selector-height: 438px;
  position: relative;
  min-height: var(--selector-height);
  margin-top: clamp(34px, 5vh, 58px);
  display: grid;
  grid-template-columns: minmax(250px, 0.66fr) minmax(0, 1.62fr);
  grid-template-rows: repeat(var(--tool-count), 102px);
  column-gap: clamp(30px, 4.5vw, 72px);
  row-gap: 13px;
}

.tool-selector::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: clamp(125px, 11.8vw, 170px);
  width: 1px;
  background: linear-gradient(180deg, rgba(var(--tools-sun-deep-rgb), 0.32), rgba(var(--tools-sun-rgb), 0.28), rgba(255, 234, 168, 0.3));
  pointer-events: none;
}

.tool-choice {
  display: contents;
}

html:not(.tools-enhanced) .tool-selector {
  display: block;
}

html:not(.tools-enhanced) .tool-selector::before {
  display: none;
}

html:not(.tools-enhanced) .tool-choice {
  display: block;
  margin-top: 18px;
}

html:not(.tools-enhanced) .tool-panel {
  margin-top: 10px;
}

.need-signal {
  --signal: var(--tools-sun-deep);
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 102px;
  padding: 18px 48px 18px 24px;
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 17px;
  color: rgba(232, 245, 242, 0.78);
  border: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background: rgba(12, 35, 47, 0.72);
  box-shadow: 0 14px 30px rgba(0, 4, 9, 0.22);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 240ms ease, background-color 240ms ease, transform 240ms cubic-bezier(.16, 1, .3, 1), box-shadow 240ms ease;
}

.tool-choice--pink .need-signal { --signal: var(--tools-sun); }
.tool-choice--gold .need-signal { --signal: var(--tools-sun-light); }

.need-signal::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: inherit;
  background: linear-gradient(118deg, rgba(9, 31, 43, 0.98), rgba(4, 18, 29, 0.96));
}

.need-signal::after {
  content: "";
  position: absolute;
  right: -52px;
  top: 50%;
  width: 52px;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, var(--signal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 200ms ease, transform 460ms cubic-bezier(.16, 1, .3, 1);
}

.need-signal__light {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--signal), transparent 28%);
  background: rgba(2, 12, 22, 0.85);
  transform: rotate(45deg);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.need-signal span:not(.need-signal__light) {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.need-signal small {
  color: rgba(226, 244, 248, 0.57);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.need-signal strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.need-signal > i {
  position: absolute;
  right: 22px;
  width: 11px;
  height: 11px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.need-signal:hover,
.need-signal:focus-visible {
  color: var(--paper);
  background: color-mix(in srgb, var(--signal), transparent 52%);
  transform: translateX(4px);
}

.need-signal:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.need-signal.is-active {
  color: var(--paper);
  background: color-mix(in srgb, var(--signal), transparent 26%);
  box-shadow: 0 17px 34px rgba(0, 4, 9, 0.28);
}

.need-signal.is-active::after {
  opacity: 0.9;
  transform: scaleX(1);
}

.need-signal.is-active .need-signal__light {
  background: var(--signal);
  box-shadow: 0 0 15px 4px color-mix(in srgb, var(--signal), transparent 56%);
}

.tool-panel {
  --panel-signal: var(--tools-sun-deep);
  position: relative;
  min-width: 0;
  height: 438px;
  min-height: 438px;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1.08fr);
  overflow: hidden;
  color: #17343c;
  background: linear-gradient(145deg, #fcf9f1, #ece8df);
  clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 27px, 100% 100%, 27px 100%, 0 calc(100% - 27px));
  box-shadow: 0 28px 66px rgba(0, 3, 8, 0.38);
}

.tool-panel--shiftcare { --panel-signal: var(--tools-sun); }
.tool-panel--asuyaru { --panel-signal: var(--tools-sun-light); }

.tools-enhanced .tool-panel:not(.is-active) {
  display: none;
}

.tool-panel::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--panel-signal), transparent 42%);
  clip-path: inherit;
  pointer-events: none;
}

.tools-enhanced .tool-panel.is-active {
  animation: tool-arrive 560ms cubic-bezier(.16, 1, .3, 1) both;
}

.tool-panel__visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #06131e;
}

.tool-panel__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(1, 9, 16, 0.72));
  pointer-events: none;
}

.tool-panel__visual--shiftle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 43% center;
}

.tool-panel__scan {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  background: linear-gradient(108deg, transparent 42%, color-mix(in srgb, var(--panel-signal), transparent 58%) 49.8%, transparent 58%);
  background-size: 240% 100%;
  pointer-events: none;
}

.tools-enhanced .tool-panel.is-active .tool-panel__scan {
  animation: tool-scan 760ms 90ms cubic-bezier(.16, 1, .3, 1) both;
}

.tool-panel__copy {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-panel__name {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 11px 16px;
}

.tool-panel__name span {
  order: 2;
  margin-bottom: 4px;
  padding: 5px 10px;
  color: #2b555d;
  border: 1px solid rgba(32, 93, 104, 0.28);
  font-size: 13px;
  line-height: 1;
}

.tool-panel__name h2 {
  font-size: clamp(35px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tool-panel__name h2 small {
  margin-left: 2px;
  color: #48646a;
  font-size: 0.46em;
}

.tool-panel__promise {
  margin-top: 22px;
  color: #203f46;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 600;
  line-height: 1.75;
}

.tool-facts {
  width: 100%;
  margin: 24px 0 28px;
  display: grid;
  gap: 9px;
  color: #4b6267;
  font-size: 16px;
  line-height: 1.65;
  list-style: none;
}

.tool-facts li {
  position: relative;
  padding-left: 18px;
}

.tool-facts li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 6px;
  height: 6px;
  background: var(--panel-signal);
  box-shadow: 0 0 10px color-mix(in srgb, var(--panel-signal), transparent 48%);
  transform: translateY(-50%) rotate(45deg);
}

.tool-open,
.request-line {
  position: relative;
  width: min(100%, 310px);
  min-height: 58px;
  margin-top: auto;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  color: #f8f5ed;
  background: #7a5a12;
  box-shadow: 0 14px 28px rgba(0, 5, 11, 0.22);
  text-decoration: none;
  font-size: 15px;
  transition: background-color 220ms ease, transform 220ms cubic-bezier(.16, 1, .3, 1), box-shadow 220ms ease;
}

.tool-open:hover,
.tool-open:focus-visible,
.request-line:hover,
.request-line:focus-visible {
  background: #8f6b16;
  box-shadow: 0 18px 34px rgba(0, 5, 11, 0.3);
  transform: translateY(-3px);
}

.tool-open:focus-visible,
.request-line:focus-visible {
  outline: 3px solid var(--tools-sun);
  outline-offset: 5px;
}

.tool-open:active,
.request-line:active {
  transform: scale(0.98);
}

.tool-panel__visual--shiftcare {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(126, 174, 164, 0.21), transparent 39%),
    #071a21;
}

.shiftcare-mark {
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 50%;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 17px 31px rgba(0, 5, 10, 0.32);
  transform: translateX(-50%);
}

.mini-roster {
  width: min(82%, 300px);
  margin-top: 96px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  border-top: 1px solid rgba(225, 244, 239, 0.3);
  border-bottom: 1px solid rgba(225, 244, 239, 0.16);
  background: rgba(6, 25, 33, 0.88);
  box-shadow: 0 21px 38px rgba(0, 4, 8, 0.34);
  transform: perspective(640px) rotateX(8deg);
}

.mini-roster span,
.mini-roster i {
  display: block;
  height: 7px;
  background: rgba(235, 247, 241, 0.3);
}

.mini-roster i {
  height: 20px;
  background: rgba(116, 174, 163, 0.22);
}

.mini-roster i:nth-of-type(4n + 1) { background: rgba(217, 169, 47, 0.42); }
.mini-roster i:nth-of-type(5n + 2) { background: rgba(var(--tools-sun-rgb), 0.34); }

.tool-panel__visual--asuyaru {
  display: grid;
  place-items: end center;
  background:
    radial-gradient(circle at 50% 20%, rgba(72, 123, 255, 0.2), transparent 36%),
    #07131f;
}

.asuyaru-shot {
  position: absolute;
  z-index: 1;
  bottom: -172px;
  left: 50%;
  width: min(68%, 238px);
  height: auto;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 20px 43px rgba(0, 4, 10, 0.38);
  transform: translateX(-50%);
}

.asuyaru-mark {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 25px;
  width: 74px;
  height: 74px;
  border-radius: 19px;
  box-shadow: 0 13px 25px rgba(0, 5, 11, 0.31);
}

.tools-next {
  width: max-content;
  min-height: 44px;
  margin: 24px 0 0 auto;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(226, 244, 248, 0.71);
  font-size: 16px;
  text-decoration: none;
}

.tools-next i {
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--tools-sun);
  border-bottom: 1px solid var(--tools-sun);
  transform: rotate(45deg) translateY(-2px);
}

.tools-next:hover,
.tools-next:focus-visible {
  color: var(--paper);
}

.tools-next:focus-visible {
  outline: 2px solid var(--tools-sun);
  outline-offset: 5px;
}

/* 欲しい道具を集める受信所 */
.tool-request {
  position: relative;
  isolation: isolate;
  min-height: max(720px, 100svh);
  padding: clamp(88px, 10svh, 124px) 28px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #17343c;
  background:
    radial-gradient(circle at 90% 8%, rgba(217, 169, 47, 0.1), transparent 27%),
    linear-gradient(145deg, #fbf8ef, #f0ece2);
}

.tool-request::before,
.tool-request::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}


.tool-request::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 15%, transparent 86%, rgba(24, 52, 60, 0.08));
}

.tool-request__route {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(52vw, 670px);
  height: min(52vw, 670px);
  border: 1px solid rgba(138, 100, 16, 0.12);
  border-radius: 50%;
  transform: translate(-7%, -50%);
  pointer-events: none;
}

.tool-request__route::before,
.tool-request__route::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(138, 100, 16, 0.1);
  border-radius: 50%;
}

.tool-request__route::before { inset: 13%; }
.tool-request__route::after { inset: 28%; }

.tool-request__route i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a67a18;
  box-shadow: 0 0 14px rgba(217, 169, 47, 0.32);
}

.tool-request__route i:nth-child(1) { top: 12%; left: 29%; }
.tool-request__route i:nth-child(2) { right: 12%; bottom: 33%; background: #8a6410; }
.tool-request__route i:nth-child(3) { left: 35%; bottom: 20%; background: #c9a03a; }

.tool-request__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
  align-items: center;
  gap: clamp(48px, 7vw, 98px);
}

.request-copy h2 {
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.request-copy h2 em {
  color: #7a5a12;
  font-style: normal;
}

.request-copy p {
  max-width: 38ch;
  margin-top: 25px;
  color: #4b6267;
  font-size: 17px;
  line-height: 1.95;
}

.request-console {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(235, 232, 223, 0.96));
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow: 0 27px 62px rgba(28, 54, 57, 0.18);
}

.request-console::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(138, 100, 16, 0.34);
  clip-path: inherit;
  pointer-events: none;
}

.request-console__question {
  color: #5f5230;
  font-size: 14px;
  line-height: 1.7;
}

.request-ideas {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.request-ideas button {
  min-height: 44px;
  padding: 9px 13px;
  color: #5c4a18;
  border: 1px solid rgba(138, 100, 16, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.request-ideas button:hover,
.request-ideas button:focus-visible,
.request-ideas button.is-selected {
  color: #4a3a10;
  border-color: rgba(138, 100, 16, 0.62);
  background: rgba(var(--tools-sun-rgb), 0.16);
  transform: translateY(-2px);
}

.request-ideas button:focus-visible {
  outline: 3px solid rgba(138, 100, 16, 0.36);
  outline-offset: 3px;
}

.request-console label {
  margin-top: 27px;
  display: block;
  color: #5c4a18;
  font-size: 16px;
  font-weight: 600;
}

.request-console textarea {
  width: 100%;
  min-height: 104px;
  margin-top: 10px;
  padding: 15px 16px;
  resize: vertical;
  color: #17343c;
  border: 1px solid rgba(138, 100, 16, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
}

.request-console textarea::placeholder {
  color: #6b7f82;
  opacity: 1;
}

.request-console textarea:focus {
  outline: 3px solid rgba(138, 100, 16, 0.26);
  border-color: #7a5a12;
}

.request-line {
  width: 100%;
  max-width: none;
  margin-top: 10px;
}

.request-line[hidden] {
  display: none;
}

.request-copy-action {
  width: 100%;
  min-height: 50px;
  margin-top: 17px;
  color: #5c460f;
  border: 1px solid rgba(138, 100, 16, 0.42);
  background: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.request-copy-action:hover,
.request-copy-action:focus-visible {
  color: #0d3f47;
  border-color: #7a5a12;
  background: rgba(var(--tools-sun-rgb), 0.15);
}

.request-copy-action:focus-visible {
  outline: 3px solid rgba(138, 100, 16, 0.26);
  outline-offset: 3px;
}

.request-copy-action.is-copied {
  color: #f8f5ed;
  border-color: #7a5a12;
  background: #7a5a12;
}

.request-status {
  min-height: 24px;
  margin-top: 12px;
  color: #556d71;
  font-size: 14px;
  line-height: 1.75;
}

.request-status a {
  color: #7a5a12;
  text-underline-offset: 3px;
}

.request-status a:focus-visible {
  outline: 2px solid #7a5a12;
  outline-offset: 3px;
}

.request-future {
  grid-column: 1 / -1;
  max-width: 65ch;
  margin: -12px auto 0;
  color: #607579;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

@keyframes tool-arrive {
  from {
    clip-path: polygon(0 0, 0 0, 0 27px, 0 100%, 0 100%, 0 calc(100% - 27px));
    filter: brightness(1.35);
  }
  to {
    clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 27px, 100% 100%, 27px 100%, 0 calc(100% - 27px));
    filter: brightness(1);
  }
}

@keyframes tool-scan {
  0% { opacity: 0; background-position: 130% 0; }
  25% { opacity: 0.72; }
  100% { opacity: 0; background-position: -40% 0; }
}

@media (min-width: 761px) {
  .tool-panel {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 980px) {
  .tools-hero__inner { width: calc(100% - 48px); min-height: 560px; padding: 90px 0 88px; }

  .tools-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tools-heading p {
    max-width: 48ch;
    padding: 0;
  }

  .tool-selector {
    min-height: 0;
    grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.42fr);
    column-gap: 28px;
  }

  .need-signal::after {
    right: -28px;
    width: 28px;
  }

  .tool-panel {
    grid-template-columns: minmax(210px, 0.8fr) minmax(270px, 1.2fr);
  }

  .tool-panel__copy {
    padding: 34px;
  }

  .tool-request__inner {
    gap: 46px;
  }
}

@media (max-width: 760px) {
  html { scroll-behavior: auto; }

  .tools-page .header { min-height: 68px; padding: 0 18px; }

  .tools-heading h1 {
    font-size: clamp(36px, 10.4vw, 48px);
    line-height: 1.4;
  }

  .tools-heading p {
    font-size: 15px;
    line-height: 1.85;
  }

  /* Same SP framing as the AI-staff arrival: copy sits low over the photo. */
  .tools-hero { min-height: max(720px, 100svh); }
  .tools-hero__inner { width: calc(100% - 36px); min-height: 700px; margin-top: 68px; padding: 260px 0 82px; justify-content: flex-end; }
  .tools-heading { width: 100%; }

  /* The corner marker and scroll cue would sit on top of the copy at this width. */
  .tools-hero__signal,
  .tools-hero__next { display: none; }

  .tools-hero__facts { margin-top: 34px; font-size: 12px; }
  .tools-hero__facts span { padding: 0 12px; }

  .tools-primary { width: 100%; min-width: 0; }

  .tool-picker {
    padding: 62px 18px 74px;
  }

  .tool-picker .chapter-heading {
    margin-bottom: 32px;
  }

  .tool-picker .chapter-heading h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .tool-selector {
    margin-top: 32px;
    display: block;
  }

  .tool-selector::before { display: none; }

  .tool-choice {
    display: block;
    margin-top: 18px;
  }

  .need-signal {
    min-height: 88px;
    padding: 16px 45px 16px 18px;
    cursor: default;
  }

  .need-signal::after {
    right: 20px;
    top: auto;
    bottom: -15px;
    width: 1px;
    height: 15px;
    opacity: 0.72;
    background: linear-gradient(180deg, var(--signal), transparent);
    transform: none;
  }

  .need-signal > i {
    right: 21px;
    transform: rotate(135deg) translate(-2px, 2px);
  }

  .need-signal:hover,
  .need-signal:focus-visible {
    transform: none;
  }

  .need-signal,
  .need-signal.is-active {
    color: var(--paper);
    background: color-mix(in srgb, var(--signal), transparent 28%);
  }

  .need-signal .need-signal__light {
    background: var(--signal);
    box-shadow: 0 0 14px 4px color-mix(in srgb, var(--signal), transparent 58%);
  }

  .tools-enhanced .tool-panel,
  .tools-enhanced .tool-panel:not(.is-active),
  .tool-panel {
    height: auto;
    min-height: 0;
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  }

  .tools-enhanced .tool-panel.is-active {
    animation: none;
  }

  .tool-panel__visual {
    min-height: 220px;
  }

  .tool-panel {
    scroll-margin-top: 76px;
  }

  .tool-panel__visual--shiftle img {
    object-position: center 39%;
  }

  .tool-panel__copy {
    padding: 28px 24px 30px;
  }

  .tool-panel__promise {
    font-size: 18px;
  }

  .tool-facts {
    margin-bottom: 25px;
    font-size: 16px;
  }

  .tool-open {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }

  .shiftcare-mark {
    top: 18px;
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }

  .mini-roster {
    width: min(78%, 290px);
    margin-top: 62px;
  }

  .asuyaru-shot {
    bottom: -270px;
    width: min(60%, 210px);
  }

  .asuyaru-mark {
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }

  .tools-next {
    margin: 28px auto 0;
  }

  .tool-request {
    min-height: auto;
    padding: 82px 18px 72px;
  }

  .tool-request__route {
    top: 11%;
    left: 45%;
    width: 500px;
    height: 500px;
    opacity: 0.68;
    transform: none;
  }

  .tool-request__inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .request-copy h2 {
    font-size: clamp(36px, 10.2vw, 48px);
    line-height: 1.45;
  }

  .request-copy p {
    margin-top: 20px;
    font-size: 15px;
  }

  .request-console {
    padding: 28px 20px 25px;
  }

  .request-ideas {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .request-ideas button {
    min-height: 48px;
    padding: 9px 10px;
  }

  .request-future {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .tools-heading h1,
  .request-copy h2 {
    font-size: 35px;
  }

  .request-ideas {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tools-page *,
  .tools-page *::before,
  .tools-page *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Arrival scene shared with top STAGE 02. */
.tools-hero__scene,
.tools-hero__scene img,
.tools-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tools-hero__scene {
  z-index: -3;
  overflow: hidden;
}

.tools-hero__scene img {
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

/*
  Same idea: hold the shade where the copy sits, then open up the town.
*/
.tools-hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 11, 20, 0.88) 0%, rgba(2, 11, 20, 0.66) 42%, rgba(2, 11, 20, 0.14) 68%, rgba(2, 11, 20, 0.24) 100%),
    linear-gradient(180deg, rgba(2, 11, 20, 0.28) 0%, rgba(2, 11, 20, 0.18) 42%, rgba(2, 11, 20, 0.82) 100%);
  pointer-events: none;
}

.tools-hero__inner { position: relative; z-index: 1; }

@media (max-width: 760px) {
  .tools-hero__scene img { object-position: 58% center; }
  /* Copy runs full width here, so only the bands without text can open up. */
  .tools-hero__veil {
    background:
      linear-gradient(90deg, rgba(2, 11, 20, 0.74), rgba(2, 11, 20, 0.3)),
      linear-gradient(180deg, rgba(2, 11, 20, 0.2) 0%, rgba(2, 11, 20, 0.58) 45%, rgba(2, 11, 20, 0.9) 100%);
  }
}

/* 道具棚：カードを選んだ時だけ詳細窓を召喚する */
.has-tool-dialog {
  overflow: hidden;
}

/* 道具が増えても崩れないよう2列固定。奇数枚のときだけ最後が全幅に伸びる。 */
.tool-shelf {
  margin-top: clamp(38px, 5.5vh, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.tool-card:nth-child(odd):last-child {
  grid-column: 1 / -1;
}

.tool-card {
  --signal: var(--cyan);
  position: relative;
  isolation: isolate;
  min-height: 218px;
  padding: 34px 30px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 24px;
  overflow: hidden;
  color: rgba(236, 246, 242, 0.9);
  background: linear-gradient(146deg, rgba(13, 39, 52, 0.95), rgba(3, 17, 28, 0.97));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 0 22px 43px rgba(0, 4, 9, 0.28);
  text-decoration: none;
  transition: color 240ms ease, transform 320ms cubic-bezier(.16, 1, .3, 1), box-shadow 320ms ease;
}

.tool-card--pink { --signal: var(--pink); }
.tool-card--gold { --signal: var(--gold); }

.tool-card::before,
.tool-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tool-card::before {
  z-index: -1;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--signal), transparent 58%);
  clip-path: inherit;
}

.tool-card::after {
  z-index: -2;
  top: 0;
  bottom: 0;
  left: -55%;
  width: 46%;
  opacity: 0;
  background: linear-gradient(105deg, transparent, color-mix(in srgb, var(--signal), transparent 70%), transparent);
  transform: skewX(-13deg);
  transition: left 560ms cubic-bezier(.16, 1, .3, 1), opacity 220ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  color: #fffdf7;
  box-shadow: 0 31px 58px rgba(0, 4, 9, 0.42);
  transform: translateY(-7px);
}

.tool-card:hover::after,
.tool-card:focus-visible::after {
  left: 112%;
  opacity: 1;
}

.tool-card:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 5px;
}

.tool-card__signal {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 15px 4px color-mix(in srgb, var(--signal), transparent 62%);
  transform: translate(-50%, -50%);
}

.tool-card__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-card__copy > small {
  color: color-mix(in srgb, var(--signal), #f8f4ea 35%);
  font-size: 13px;
  line-height: 1.5;
}

.tool-card__copy strong {
  margin-top: 9px;
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 500;
  line-height: 1.55;
}

.tool-card__copy b {
  margin-top: 18px;
  color: color-mix(in srgb, var(--signal), #f8f4ea 34%);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.tool-card__copy b small {
  margin-left: 2px;
  font-size: 0.75em;
}

.tool-card__open {
  grid-column: 1 / -1;
  min-height: 45px;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(229, 242, 245, 0.72);
  border-top: 1px solid color-mix(in srgb, var(--signal), transparent 78%);
  font-size: 16px;
}

.tool-dialog {
  width: min(calc(100vw - 48px), 1040px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  color: inherit;
  border: 0;
  background: transparent;
}

.tool-dialog::backdrop {
  opacity: 0;
  background: rgba(0, 7, 13, 0.82);
  backdrop-filter: blur(0);
  transition: opacity 280ms ease, backdrop-filter 280ms ease;
}

.tool-dialog.is-open::backdrop {
  opacity: 1;
  backdrop-filter: blur(9px);
}

.tool-dialog.is-closing::backdrop {
  opacity: 0;
}

.tool-dialog__shell {
  --summon-x: 0px;
  --summon-y: 0px;
  position: relative;
  min-height: 510px;
  overflow: hidden;
  opacity: 0;
  color: #eef8f7;
  background: #041420;
  clip-path: polygon(50% 46%, 50% 46%, 50% 54%, 50% 54%, 50% 54%, 50% 46%);
  box-shadow: 0 42px 100px rgba(0, 3, 7, 0.66);
  transform: translate(var(--summon-x), var(--summon-y)) scale(0.16, 0.08);
  transform-origin: center;
}

.tool-dialog.is-open .tool-dialog__shell {
  animation: summon-window 640ms cubic-bezier(.16, 1, .3, 1) forwards;
}

.tool-dialog.is-closing .tool-dialog__shell {
  animation: dismiss-window 330ms cubic-bezier(.7, 0, .84, 0) forwards;
}

.tool-dialog__beam {
  position: absolute;
  z-index: 7;
  inset: 0;
  opacity: 0;
  background: linear-gradient(102deg, transparent 42%, rgba(217, 251, 255, 0.9) 49.7%, transparent 56%);
  background-size: 230% 100%;
  pointer-events: none;
}

.tool-dialog.is-open .tool-dialog__beam {
  animation: detail-beam 760ms 180ms cubic-bezier(.16, 1, .3, 1) both;
}

.tool-dialog__close {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 19px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #173b43;
  border: 1px solid rgba(23, 69, 78, 0.22);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  background: rgba(250, 247, 238, 0.88);
  box-shadow: 0 10px 22px rgba(0, 4, 9, 0.16);
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.tool-dialog__close span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tool-dialog__close i {
  position: relative;
  width: 13px;
  height: 13px;
}

.tool-dialog__close i::before,
.tool-dialog__close i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 13px;
  height: 1px;
  background: currentColor;
}

.tool-dialog__close i::before { transform: rotate(45deg); }
.tool-dialog__close i::after { transform: rotate(-45deg); }

.tool-dialog__close:hover,
.tool-dialog__close:focus-visible {
  color: #092f37;
  background: #fffdf7;
  border-color: var(--tools-sun-deep);
  transform: translateY(-2px) rotate(90deg);
}

.tool-dialog__close:focus-visible {
  outline: 3px solid var(--tools-sun);
  outline-offset: 3px;
}

.tool-detail {
  --tool-signal: var(--cyan);
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(310px, 0.86fr) minmax(0, 1.14fr);
}

.tool-detail--pink { --tool-signal: var(--pink); }
.tool-detail--gold { --tool-signal: var(--gold); }

.tool-detail__identity {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 58px 40px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tool-signal), transparent 76%), transparent 35%),
    linear-gradient(150deg, #061d2a, #020b14 72%);
}

.tool-detail__identity::before,
.tool-detail__identity::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.tool-detail__identity::before {
  inset: 18px;
  opacity: 0.46;
  border: 1px solid color-mix(in srgb, var(--tool-signal), transparent 56%);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.tool-detail__identity::after {
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  border: 1px solid color-mix(in srgb, var(--tool-signal), transparent 78%);
  border-radius: 50%;
  transform: translate(-50%, -54%);
}

.tool-detail__orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  border: 1px solid color-mix(in srgb, var(--tool-signal), transparent 75%);
  border-radius: 50%;
  transform: translate(-50%, -67%) rotate(18deg);
}

.tool-detail__orbit::before,
.tool-detail__orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--tool-signal);
  box-shadow: 0 0 18px color-mix(in srgb, var(--tool-signal), transparent 42%);
}

.tool-detail__orbit::before {
  top: 21px;
  left: 27px;
  width: 7px;
  height: 7px;
}

.tool-detail__orbit::after {
  right: 8px;
  bottom: 65px;
  width: 4px;
  height: 4px;
}

.tool-detail__identity > img {
  width: 112px;
  height: 112px;
  display: block;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 22px 44px rgba(0, 3, 8, 0.48);
}

.tool-detail__identity h2 {
  margin-top: 27px;
  color: #f6f2e8;
  font-size: clamp(34px, 3.4vw, 49px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tool-detail__identity h2 small {
  margin-left: 3px;
  color: rgba(223, 239, 241, 0.65);
  font-size: 0.46em;
}

.tool-detail__identity dl {
  width: min(100%, 250px);
  margin-top: 28px;
  display: grid;
  border-top: 1px solid rgba(218, 240, 242, 0.18);
}

.tool-detail__identity dl div {
  min-height: 46px;
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(218, 240, 242, 0.18);
  text-align: left;
}

.tool-detail__identity dt {
  color: rgba(221, 239, 241, 0.56);
  font-size: 13px;
}

.tool-detail__identity dd {
  color: #f4efe3;
  font-size: 14px;
}

.tool-detail__description {
  position: relative;
  padding: 84px clamp(40px, 5vw, 68px) 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #17383f;
  background:
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--tool-signal), transparent 87%), transparent 31%),
    linear-gradient(145deg, #fbf5e8, #ead9bb);
}

.tool-detail__description::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--tool-signal), transparent 58%);
  pointer-events: none;
}

.tool-detail__promise {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: -0.012em;
}

.tool-detail__description ul {
  width: 100%;
  margin: 32px 0 36px;
  display: grid;
  gap: 12px;
  color: #466167;
  font-size: 14px;
  line-height: 1.7;
  list-style: none;
}

.tool-detail__description li {
  position: relative;
  padding-left: 21px;
}

.tool-detail__description li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: color-mix(in srgb, var(--tool-signal), #466167 24%);
  transform: translateY(-50%) rotate(45deg);
}

.tool-detail__description > a {
  width: min(100%, 330px);
  min-height: 60px;
  margin-top: auto;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: #f9f5ea;
  background: #7a5a12;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  box-shadow: 0 15px 29px rgba(0, 5, 11, 0.24);
  text-decoration: none;
  font-size: 15px;
  transition: background-color 200ms ease, transform 240ms cubic-bezier(.16, 1, .3, 1), box-shadow 200ms ease;
}

.tool-detail__description > a:hover,
.tool-detail__description > a:focus-visible {
  background: #8f6b16;
  box-shadow: 0 20px 37px rgba(0, 5, 11, 0.31);
  transform: translateY(-3px);
}

.tool-detail__description > a:focus-visible {
  outline: 3px solid var(--tool-signal);
  outline-offset: 5px;
}

@keyframes summon-window {
  0% {
    opacity: 0;
    clip-path: polygon(50% 46%, 50% 46%, 50% 54%, 50% 54%, 50% 54%, 50% 46%);
    transform: translate(var(--summon-x), var(--summon-y)) scale(0.16, 0.08);
    filter: brightness(1.7);
  }
  46% {
    opacity: 1;
    clip-path: polygon(8% 0, 92% 0, 92% 100%, 8% 100%, 8% 100%, 8% 0);
    transform: translate(0, 0) scale(0.92, 0.11);
    filter: brightness(1.35);
  }
  100% {
    opacity: 1;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
    transform: translate(0, 0) scale(1);
    filter: brightness(1);
  }
}

@keyframes dismiss-window {
  from {
    opacity: 1;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
    transform: translate(0, 0) scale(1);
    filter: brightness(1);
  }
  to {
    opacity: 0;
    clip-path: polygon(50% 46%, 50% 46%, 50% 54%, 50% 54%, 50% 54%, 50% 46%);
    transform: translate(var(--summon-x), var(--summon-y)) scale(0.16, 0.08);
    filter: brightness(1.7);
  }
}

@keyframes detail-beam {
  0% { opacity: 0; background-position: 140% 0; }
  28% { opacity: 0.72; }
  100% { opacity: 0; background-position: -50% 0; }
}

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

  .tool-detail {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  }

  .tool-detail__identity {
    padding-inline: 28px;
  }
}

@media (max-width: 760px) {
  .tool-shelf {
    margin-top: 34px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-card,
  .tool-card:last-child {
    min-height: 158px;
    padding: 25px 20px 18px;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .tool-card:hover,
  .tool-card:focus-visible {
    transform: none;
  }

  .tool-card__copy strong {
    margin-top: 5px;
    font-size: 19px;
  }

  .tool-card__copy b {
    margin-top: 8px;
  }

  .tool-card__open {
    min-height: 38px;
    padding-top: 12px;
  }

  .tool-dialog {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
  }

  .tool-dialog__shell {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    clip-path: none;
  }

  .tool-dialog__close {
    position: fixed;
    top: 13px;
    right: 13px;
    background: rgba(250, 247, 238, 0.94);
  }

  .tool-detail {
    min-height: 100%;
    display: block;
  }

  .tool-detail__identity {
    min-height: 48svh;
    padding: 68px 26px 38px;
  }

  .tool-detail__identity > img {
    width: 112px;
    height: 112px;
  }

  .tool-detail__identity h2 {
    margin-top: 23px;
    font-size: 38px;
  }

  .tool-detail__identity dl {
    margin-top: 23px;
  }

  .tool-detail__description {
    min-height: 52svh;
    padding: 48px 24px 38px;
  }

  .tool-detail__promise {
    font-size: 25px;
    line-height: 1.65;
  }

  .tool-detail__description ul {
    margin: 28px 0 33px;
  }

  .tool-detail__description > a {
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-dialog[open] .tool-dialog__shell {
    opacity: 1;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
    transform: none;
    filter: none;
  }
}
