/* ========== HERO ========== */
header.hero {
  padding: 90px 0 60px;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  margin-bottom: 36px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.r { background: #e5645b; }
.dot.y { background: #e8b93d; }
.dot.g { background: #5fbf6f; }

.terminal-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.terminal-body {
  padding: 22px 24px 26px;
  font-family: var(--mono);
  font-size: 14.5px;
}

.terminal-body .line {
  color: var(--text-dim);
  margin-bottom: 6px;
}

.terminal-body .prompt {
  color: var(--accent);
}

.typed-out {
  color: var(--text);
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: type 1.5s steps(11, end) 0.3s forwards, blink 0.8s step-end infinite;
}

@keyframes type {
  to { width: 11ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.out-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  opacity: 0;
  animation: fadein 0.6s ease 1.9s forwards;
}

@keyframes fadein {
  to { opacity: 1; }
}

.out-block .name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 27px;
  color: var(--text);
  margin-bottom: 6px;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.role-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--accent);
}

.out-block .desc {
  color: var(--text-dim);
  font-size: 13.5px;
  max-width: 560px;
  line-height: 1.75;
  font-family: var(--sans);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ========== SECTION SHELL ========== */
.section {
  padding: 64px 0;
  
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "//";
  color: var(--text-faint);
}

h2.title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.01em;
}

.lede {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 640px;
  margin-bottom: 30px;
}

/* ========== ABOUT ========== */
.about-body p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 16px;
  max-width: 680px;
}

.pull-quote {
  margin: 30px 0 6px;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  max-width: 680px;
}

.pull-quote .mark {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

/* ========== TIMELINE ========== */
.timeline {
  border-left: 1px solid var(--border);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.tl-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}

.tl-title {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 3px;
}

.tl-sub {
  font-size: 13px;
  color: var(--text-dim);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ========== SKILLS ========== */
.skill-block {
  margin-bottom: 26px;
}

.skill-block h4 {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.skill-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color 0.15s, color 0.15s;
}

.skill-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.skill-chip.stack {
  border-left: 3px solid var(--layer-color, var(--accent));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.learning-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  white-space: nowrap;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 700px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
  transition: border-color 0.18s, transform 0.18s;
}

.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
}

.card .role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
}

.card .idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

.card p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-dim);
}

.card-links {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
}

.card-links a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.card-links a:hover {
  border-color: var(--accent);
}

.card.placeholder {
  border-style: dashed;
  opacity: 0.75;
}

.card.placeholder .role {
  color: var(--text-faint);
}

/* ========== ACHIEVEMENTS ========== */
.achv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.achv-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.achv-item .mark {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  margin-top: 2px;
}

.achv-item .body h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.achv-item .body p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13px;
}

.contact-card .label {
  color: var(--text-faint);
  font-size: 11px;
  margin-bottom: 6px;
}

.contact-card .value {
  color: var(--text);
  font-size: 14px;
  word-break: break-word;
}

.contact-card .value:hover {
  color: var(--accent);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.15s;
}

.social-row a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-row svg {
  width: 17px;
  height: 17px;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 1.8;
}

.social-row a:hover svg {
  stroke: var(--accent);
}

/* ========== MOBILE MENU ADJUSTMENTS ========== */
@media (max-width: 480px) {
  .menu-links a {
    font-size: 22px;
    gap: 12px;
  }

  .menu-links a .num {
    font-size: 11px;
  }

  .menu-top {
    padding: 16px 18px;
  }

  .menu-links {
    padding: 0 6vw;
  }

  .menu-bottom {
    padding: 16px 6vw 24px;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typed-out {
    animation: none;
    width: 11ch;
    border-right: none;
  }

  .out-block {
    animation: none;
    opacity: 1;
  }

  .menu-links a {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Buttons */
.btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}