/*
  Entry page — isolated from Phase C/D/E/F. Reduced, story-first structure:
  hero -> why -> career journey -> today -> what I built -> explore.
  No dashboard, no metrics strip, no maturity badges, no top-right nav —
  the platform is evidence, not the protagonist, and Explore is the only
  navigation hub this page needs.
*/

.hm-wrap { max-width: 1180px; padding-bottom: 100px; padding-top: 56px; }

/* ---------- Section 1: Hero ---------- */

.hm-hero {
  display: grid; grid-template-columns: 1fr 275px; align-items: center; gap: 40px;
  padding: 8px 0 56px;
  animation: hm-fade-up 0.6s ease both;
}
@keyframes hm-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--card-border); background: var(--accent-soft);
  padding: 5px 10px; border-radius: 3px;
}

.hm-name {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 54px);
  line-height: 1.06; letter-spacing: -0.015em; margin: 20px 0 6px; text-wrap: balance;
}
.hm-role { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-soft); margin: 0 0 22px; letter-spacing: 0.01em; }
.hm-mission {
  font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 62ch; margin: 0;
  text-align: justify; text-justify: inter-word; hyphens: auto;
}
.hm-why-text {
  font-family: var(--font-display); font-size: 16.5px; line-height: 1.6; color: var(--ink-soft);
  max-width: 62ch; margin: 22px 0 0;
  text-align: justify; text-justify: inter-word; hyphens: auto;
}

.hm-hero-photo {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, black 78%, transparent 100%);
  mask-image: linear-gradient(to left, black 78%, transparent 100%);
}
.hm-hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(0.35) sepia(0.18) saturate(1.15) contrast(1.02);
}
.hm-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 55%),
              linear-gradient(to top, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 30%);
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .hm-hero-photo::after,
@media (prefers-color-scheme: dark) { .hm-hero-photo::after { mix-blend-mode: normal; opacity: 0.5; } }

/* ---------- Shared section shell ---------- */

.hm-section { padding: 48px 0 8px; border-top: 1px solid var(--rule); margin-top: 8px; }

.hm-section-label {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.hm-section-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------- Section 3: Career Journey — compact single-line, click to expand ---------- */

.journey-row {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 3px;
  overflow-x: auto; padding-bottom: 6px; -ms-overflow-style: none; scrollbar-width: thin;
}
.journey-stage {
  flex: 0 0 auto; white-space: nowrap; cursor: pointer;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: -0.01em; color: var(--ink-soft);
  background: var(--bg-elevated); border: 1px solid var(--card-border); border-radius: 4px;
  padding: 7px 8px; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.journey-stage:hover { border-color: var(--accent); color: var(--ink); }
.journey-stage.is-selected { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); font-weight: 650; }
.journey-arrow { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }

.journey-detail {
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--rule);
  font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); max-width: none; min-height: 1.6em;
}
.journey-detail strong { color: var(--ink); font-weight: 650; }

@media (max-width: 620px) {
  .journey-row { flex-wrap: wrap; overflow-x: visible; }
}

/* ---------- Section 4: Today ---------- */

.today-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.today-col h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--ink); }
.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.today-list li {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); background: var(--mono-bg);
  border: 1px solid var(--card-border); border-radius: 3px; padding: 6px 11px;
}

@media (max-width: 620px) {
  .today-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Section 5: Explore ---------- */

.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.explore-card {
  display: block; padding: 26px 22px; border: 1px solid var(--card-border); border-radius: 8px;
  background: var(--bg-elevated); box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.explore-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 22px rgba(18, 32, 27, 0.1); }
:root[data-theme="dark"] .explore-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .explore-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
}

.explore-icon { display: inline-block; width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.explore-icon svg { display: block; width: 100%; height: 100%; }
.explore-card h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.explore-card p { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.explore-arrow { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); }

/* ---------- Footer signature ---------- */

.hm-signature {
  margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--rule);
  text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
}
.hm-signature a { color: var(--ink-faint); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.hm-signature a:hover { color: var(--accent); border-color: var(--accent); }
.hm-signature .sig-sep { margin: 0 10px; color: var(--rule); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hm-hero { grid-template-columns: 1fr; gap: 28px; }
  .hm-hero-photo { width: 280px; margin: 0 auto; -webkit-mask-image: none; mask-image: none; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .hm-wrap { padding-top: 40px; }
  .hm-hero { padding: 0 0 40px; }
  .explore-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero { animation: none; }
}
