/* ----------------------------------------
   FRONT PAGE — COVER SECTION
----------------------------------------- */

.hb-cover {
  position: relative;
  width: 100%;
  min-height: max(220px, calc(50vh - 60px));
  padding: 32px 0;
  background: var(--hb-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hb-cover-overlay {
  display: none;
}

.hb-cover-inner {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hb-cover-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(38px, 10vw, 136px);
  font-weight: 300;
  letter-spacing: 0.06em;
  padding-left: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--hb-text);
}

.hb-cover-keywords {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hb-cover-keywords span {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hb-text-2-alt);
}


/* ----------------------------------------
   BIO SUMMARY
----------------------------------------- */

.hb-bio {
  width: 100%;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 10vw, 200px);
  background: rgb(var(--hb-glass) / 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: flex;
  justify-content: center;
  position: relative;
}

/* glossy dividing lines (top + bottom) */
.hb-bio::before,
.hb-bio::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgb(var(--hb-glass) / 0.95) 30%,
    rgba(200, 230, 255, 0.9) 50%,
    rgb(var(--hb-glass) / 0.95) 70%,
    transparent);
  box-shadow: 0 0 10px rgba(180, 220, 255, 0.6);
}

.hb-bio::before { top: 0; }
.hb-bio::after  { bottom: 0; }

.hb-bio-text {
  max-width: 700px;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--hb-text-2);
  text-align: center;
}

/* ----------------------------------------
   IDENTITY — Apple-style dark showcase
----------------------------------------- */

.hb-identity {
  position: relative;
  width: 100%;
  padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 80px);
  background: var(--hb-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* very faint radial tint behind the words */
.hb-identity::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(129, 140, 248, 0.06) 0%,
    transparent 70%);
  pointer-events: none;
}

.hb-identity-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
}

.hb-identity-orbit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(6px, 1.2vw, 20px) clamp(16px, 3vw, 48px);
  width: 100%;
}

/* shared tag styles */
.hb-tag {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;

  /* gradient text */
  background: linear-gradient(90deg,
    #60a5fa   0%,
    #818cf8  25%,
    #c084fc  50%,
    #818cf8  75%,
    #60a5fa 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  filter: drop-shadow(0 0 14px rgba(129, 140, 248, 0.18));

  opacity: 0;
  animation:
    tag-appear 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
    shimmer    7s 2s ease-in-out infinite;
}

@keyframes tag-appear {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes shimmer {
  0%   { background-position:  100% 0; }
  100% { background-position: -100% 0; }
}

/* 2×2 diagonal layout — large words on top-left & bottom-right */
.hb-tag-1 { /* MOUNTAINEER — large, top-left, bottom-aligned */
  grid-column: 1; grid-row: 1;
  font-size: clamp(26px, 5vw, 66px);
  text-align: left;
  align-self: end;
  animation-delay: 0.1s, 2s;
}

.hb-tag-2 { /* ATHLETE — small, top-right, bottom-aligned */
  grid-column: 2; grid-row: 1;
  font-size: clamp(14px, 2.6vw, 34px);
  text-align: right;
  align-self: end;
  animation-delay: 0.3s, 2s;
}

.hb-tag-3 { /* ENGINEER — small, bottom-left, top-aligned */
  grid-column: 1; grid-row: 2;
  font-size: clamp(14px, 2.6vw, 34px);
  text-align: left;
  align-self: start;
  animation-delay: 0.5s, 2s;
}

.hb-tag-4 { /* PHYSICIST — large, bottom-right, top-aligned */
  grid-column: 2; grid-row: 2;
  font-size: clamp(26px, 5vw, 66px);
  text-align: right;
  align-self: start;
  animation-delay: 0.7s, 2s;
}

/* ----------------- responsive tweaks ----------------- */

@media (max-width: 540px) {
  .hb-identity-orbit {
    grid-template-columns: 1fr;
  }
  .hb-tag-1, .hb-tag-4 { font-size: clamp(28px, 8vw, 48px); text-align: center; }
  .hb-tag-2, .hb-tag-3 { font-size: clamp(18px, 5vw, 30px); text-align: center; }
}

/* Name: letters rise in one by one */
.hb-cover-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: hb-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes hb-rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-cover-title span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Role line between thin rules */
.hb-cover-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(760px, 90vw);
  margin: 22px auto 0;
}

.hb-cover-rule::before,
.hb-cover-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hb-hairline-soft);
}

.hb-cover-role {
  font-size: clamp(10px, 1.3vw, 13px);
  font-weight: 500;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  text-transform: uppercase;
  color: var(--hb-text-2);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hb-cover-role {
    letter-spacing: 0.24em;
    padding-left: 0.24em;
  }
}

/* Soft theme-colour wash behind the whole homepage
   (blue → indigo → violet, matching the tag gradient). */
.hb-site {
  background:
    radial-gradient(ellipse 60% 45% at 12% 8%,  rgba(96, 165, 250, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 45% at 88% 18%, rgba(192, 132, 252, 0.19), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 95%, rgba(129, 140, 248, 0.16), transparent 70%),
    var(--hb-bg);
}

.hb-cover,
.hb-identity {
  background: transparent;
}
