main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3.2rem;
}

.hero {
  position: relative;
  padding: 3.4rem 0 1.8rem;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-profile {
  width: clamp(5.5rem, 10vw, 8rem);
  height: clamp(5.5rem, 10vw, 8rem);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 5rem);
  line-height: 1;
  max-width: 12ch;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--accent-2);
  margin: 0.8rem 0 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  min-height: 1.5rem;
}

.typewriter-text {
  color: var(--accent);
  border-right: 2px solid var(--accent);
  padding-right: 4px;
  animation: cursor-blink 0.8s step-end infinite;
  min-height: 1.2em;
}

@keyframes cursor-blink {
  from, to { border-color: transparent }
  50% { border-color: var(--accent) }
}

.lead {
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.75;
  margin-top: 0.9rem;
}

.hero-location-top {
  display: none;
}

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

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 1.6rem 0 0;
}

.stats li {
  background: transparent;
  border: 1px solid rgba(239, 131, 84, 0.18);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}


.stats li:hover {
  border-color: rgba(239, 131, 84, 0.55);
}

.stats li strong,
.stats li .stat-main {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
}

.stats li span,
.stats li .stat-sub {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 0.25rem;
}

.gpa-val {
  font-size: 1.4rem !important;
  font-weight: 800;
  gap: 0.05rem;
}

.gpa-val small {
  display: inline;
  font-size: 0.82rem;
  font-weight: 400;
  color: #f5b090;
  margin: 0;
  opacity: 0.95;
}

.rainbow-text {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #ffd4b8 25%,
    #cccccc 50%,
    #999999 75%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: rainbow-scroll 6s linear infinite;
  font-weight: 800;
}

.secret-counter {
  background: linear-gradient(150deg, rgba(14, 41, 35, 0.88), rgba(8, 22, 20, 0.96)) !important;
  border-color: rgba(239, 131, 84, 0.32) !important;
}

.secret-counter-value {
  display: inline-flex !important;
  align-items: baseline;
  gap: 0.08rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.secret-counter-value span {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.secret-counter-value small {
  display: inline;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.95;
}

.secret-counter span:last-child {
  color: var(--muted);
}

@keyframes rainbow-scroll {
  to {
    background-position: 200% center;
  }
}
