.landing {
  margin-top: 0.5rem;
}

.story {
  margin-top: 2.5rem;
}

.hero-panel {
  position: relative;
  min-height: 760px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 30, 0.45) 0%, rgba(7, 24, 44, 0.72) 60%, rgba(12, 34, 58, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #f7fbff;
  height: 100%;
  padding: 2.25rem 2.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
}

.hero-divider {
  flex: 1;
  height: 1px;
  align-items: left;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 0.3rem;
  max-width: 2000px;
}

.hero-logo img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.4));
}

.hero-logo-text {
  display: grid;
  gap: 0.15rem;
}

.hero-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-nav .nav-uniform,
.hero-nav .text-link {
  color: #ffffff;
  font-weight: 650;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

.hero-nav .text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.hero-nav .text-link:hover::after,
.hero-nav .text-link:focus-visible::after {
  transform: scaleX(1);
}

.hero-dropdown {
  position: relative;
}

.hero-dropdown button {
  border: none;
  background: transparent;
  color: #ffffff;
  padding: 0;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: 0.01em;
  font-size: 1rem;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.hero-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  background: rgba(14, 25, 40, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  z-index: 12;
}

.hero-dropdown-menu a,
.hero-dropdown-menu span {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  color: #f7fbff;
}

.hero-dropdown-menu .nav-hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.hero-dropdown-menu a:hover,
.hero-dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.hero-dropdown.open button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.hero-dropdown.open .hero-dropdown-menu {
  display: grid;
  gap: 0.25rem;
}

.hero-bottom {
  margin-top: auto;
  max-width: 880px;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.hero-text h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 820px;
}

.hero-description {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.82);
}

.hero .eyebrow,
.hero-text .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(143, 217, 182, 0.18), rgba(109, 197, 158, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.anchor-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.anchor-link:hover,
.anchor-link:focus-visible {
  color: #6f9ff5;
  transform: translateY(-1px);
}

.section h3,
.section h2 {
  margin: 0 0 0.5rem;
}

.story-title {
  display: grid;
  gap: 0.65rem;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.story .section-header {
  align-items: center;
}

.story-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  color: var(--fg);
}

.story-title p {
  margin-top: 4.5rem;
  margin-bottom: 3rem;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 1);
  line-height: 2.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.directory-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.directory-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius);
}

.card-link {
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: scale(0.985);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

.card-media {
  flex: 1 1 80%;
  min-height: 275px;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.card-footer {
  flex: 0 0 20%;
  background: #ffffff;
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--fg);
  min-height: 160px;
  max-height: 160px;
}

.card-desc {
  margin: 0;
  color: var(--fg);
}

.ghost-card {
  background: var(--card);
  border-style: dashed;
  border-color: var(--border);
}

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

.minimal-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero-panel .pill {
  background: rgba(255, 255, 255, 0);
  border-color: rgba(255, 255, 255, 0);
  color: #ffffff;
}

.hero-panel .pill-ghost {
  border-color: rgba(255, 255, 255, 0);
  color: #f7fbff;
}

.hero-nav .pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.hero-nav .pill-ghost {
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 720px) {
  .hero-panel {
    min-height: 640px;
  }

  .hero-content {
    padding: 1.1rem;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 1rem;
  }
}
