.tool-directory {
  --directory-dark: #101213;
  --directory-gold: #ffc329;
}
.td-wrap {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}
.td-hero {
  position: relative;
  background:
    linear-gradient(90deg, #101213 0%, #101213ee 27%, #1012136b 64%, #10121320),
    linear-gradient(0deg, #10121385, transparent 52%),
    url('/texas-hill-country-hero.webp') 60% 54% / cover;
  color: #fffaf0;
  border-bottom: 4px solid var(--directory-gold);
}
.td-hero-inner { padding-block: clamp(48px, 6vw, 86px); }
.td-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--directory-gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.td-kicker::before { content: ''; width: 30px; height: 2px; background: currentColor; }
.td-hero h1 {
  font-size: clamp(3.25rem, 8.4vw, 8rem);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.088em;
  margin: 0;
}
.td-intro {
  max-width: 39ch;
  font-size: clamp(1rem, 1.75vw, 1.25rem);
  line-height: 1.6;
  margin: 30px 0 25px;
  color: #eeece5;
}
.td-cta {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding: 13px 17px;
  background: var(--directory-gold);
  color: var(--directory-dark);
  font-size: .85rem;
  font-weight: 800;
  border-radius: 4px;
}
.td-cta:hover { background: #ffda70; }
.td-gallery { padding-block: 36px 90px; }
.td-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.25vw, 32px); }
.td-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #2f302e;
  border-radius: 15px;
  background: #101112;
  color: #fffaf0;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
a.td-card:hover { border-color: #926400; box-shadow: 0 12px 32px #20180e26; }
.td-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #ffffff26;
  background: #101112;
}
.td-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}
.td-selector { --thumbnail-scale: 1.04; --thumbnail-hover-scale: 1.065; }
.td-selector .td-thumbnail img { object-position: center 56%; transform: scale(var(--thumbnail-scale)); }
a.td-card:hover img { transform: scale(var(--thumbnail-hover-scale, 1.025)); }
.td-card-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(18px, 2.1vw, 30px); }
.td-card-copy h2 { font-size: clamp(1.4rem, 2.8vw, 2.25rem); letter-spacing: -.045em; margin: 0; }
.td-card-copy p { font-size: .9rem; line-height: 1.55; color: #d1cfc7; margin: 8px 0 20px; }
.td-card-copy .td-category {
  margin: 0 0 7px;
  color: var(--directory-gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.td-action {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding: 12px 14px;
  background: var(--directory-gold);
  border-radius: 6px;
  color: var(--directory-dark);
  font-size: .8rem;
  font-weight: 800;
}
.td-card:hover .td-action, .td-card:focus-visible .td-action { background: #ffda70; }
@media (max-width: 900px) {
  .td-wrap { width: calc(100% - 56px); }
}
@media (max-width: 550px) {
  .td-wrap { width: calc(100% - 36px); }
  .td-grid { grid-template-columns: 1fr; }
  .td-gallery { padding-block: 42px 65px; }
  .td-hero {
    background:
      linear-gradient(90deg, #101213ec, #10121380),
      url('/texas-hill-country-hero.webp') 60% center / cover;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.tool-directory) { scroll-behavior: auto; }
  .td-card, .td-thumbnail img { transition: none; }
}
