/* ============================================================================
   sections/capabilities.css — CHAPTER 03, THE HOUSE (ivory)
   ----------------------------------------------------------------------------
   A numbered, hairline-ruled list — two columns of rows, not a 3x2 icon-card
   grid (which is the single most template-looking block on the internet).
   Roman numerals in the wordmark face, gold. On hover the row's rule warms to
   terracotta and the row eases right: restrained and physical, nothing like a
   lifting card.
   ========================================================================== */

.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  border-top: 1.35px solid var(--line-ivory);
}

.capability {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1rem;
  align-items: baseline;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
  border-bottom: 1.35px solid var(--line-ivory);
  transition: transform var(--dur) var(--ease);
}
/* The rule that warms on hover. A separate element so only THIS row lights and
   it can animate independently of the static border. */
.capability::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--clay-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.capability:hover { transform: translateX(6px); }
.capability:hover::after { transform: scaleX(1); }

.cap-index {
  font-family: var(--font-wordmark);
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--gold-700);
  padding-top: .15em;
}
.capability h3 {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: 0;
}
.capability p {
  grid-column: 2;
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--text-muted-on-light);
  max-width: 46ch;
}

@media (max-width: 860px) {
  .capability-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .capability { grid-template-columns: 1.75rem 1fr; }
  .capability p { font-size: .82rem; }
}


/* ===== The fisherman on the ivory chapter (client-placed, upper-right) =====
   On paper the engraving cannot screen-blend, so it is a soft gold figure.
   ::before is the ivory clearing that mutes the woven pattern in this corner;
   ::after is the fisherman himself at tiger-grade opacity. */
.capabilities { position: relative; }
.cap-fisher {
  position: absolute; z-index: 0; pointer-events: none;
  top: 2%; right: -4%;
  width: clamp(320px, 46%, 620px); height: clamp(240px, 42%, 460px);
}
.cap-fisher::before {
  content: ""; position: absolute; inset: -12% -6% -12% -18%;
  background: radial-gradient(62% 60% at 60% 46%, var(--ivory-100) 44%, rgba(247,242,232,.55) 66%, transparent 82%);
}
.cap-fisher::after {
  content: ""; position: absolute; inset: 0;
  background: url("../../img/scene/fisherman-cut.webp") center right / contain no-repeat;
  -webkit-mask: radial-gradient(78% 82% at 55% 50%, #000 55%, transparent 88%);
          mask: radial-gradient(78% 82% at 55% 50%, #000 55%, transparent 88%);
  /* warm the pale engraving to a gold that sits on cream, and mute it to a ghost */
  filter: sepia(.5) saturate(1.5) hue-rotate(-12deg) brightness(.72) contrast(1.05);
  opacity: .5;
}
@media (max-width: 760px) { .cap-fisher { display: none; } }
