:root {
  /* every.io-inspired palette — warm neutrals, extreme restraint */
  --bg: hsl(40, 20%, 97%);
  --card: hsl(0, 0%, 100%);
  --text: hsl(220, 15%, 16%);
  --muted: hsl(220, 8%, 52%);
  --primary: hsl(220, 14%, 18%);
  --secondary: hsl(40, 12%, 94%);
  --gold: hsl(28, 72%, 52%);
  --gold-dark: hsl(24, 68%, 42%);
  --hero-text: hsl(220, 15%, 16%);
  --hero-muted: hsl(220, 8%, 52%);
  --hero-gold: hsl(28, 72%, 52%);
  --hero-shadow: none;
  --accent-warm: hsl(28, 72%, 52%);
  --accent-warm-soft: hsla(28, 72%, 52%, 0.12);

  /* Fonts */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Borders + rings */
  --border: hsla(220, 12%, 50%, 0.10);
  --border-strong: hsla(220, 12%, 50%, 0.16);
  --ring: hsla(28, 72%, 52%, 0.24);

  /* Surfaces */
  --surface-hover: hsla(220, 14%, 18%, 0.03);

  /* Shadows — subtle but visible */
  --shadow-sm: 0 1px 4px hsla(220, 14%, 18%, 0.06);
  --shadow-md: 0 4px 20px hsla(220, 14%, 18%, 0.08);
  --shadow-lg: 0 8px 32px hsla(220, 14%, 18%, 0.10);

  /* Footer */
  --footer-bg: hsl(40, 16%, 96%);
  --footer-text: hsl(220, 14%, 18%);
  --footer-heading: hsl(220, 15%, 16%);
  --footer-subtitle: hsl(220, 8%, 42%);
  --footer-btn-border: hsla(220, 14%, 18%, 0.12);
  --footer-btn-bg: transparent;
  --footer-btn-text: hsl(220, 14%, 18%);
  --footer-separator: hsla(220, 12%, 50%, 0.12);
  --footer-copyright: hsl(220, 8%, 52%);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 64px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

body > * {
  position: relative;
  z-index: 2;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: none;
  animation: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: none;
}

@keyframes cloudDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-1.4%, 0.6%, 0);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-warm);
  text-underline-offset: 3px;
}

/* ===== NAVBAR ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: hsla(40, 20%, 97%, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent-warm);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  text-decoration: none;
  color: var(--primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 4px;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.hamburger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.hamburger svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== LAYOUT ===== */
.layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 16px 44px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

/* Scroll margin for fixed header */
section[id],
#contact {
  scroll-margin-top: 80px;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 72px 16px 0;
}

.hero-line {
  width: 48px;
  height: 2px;
  background: var(--accent-warm);
  margin-bottom: 24px;
  transform-origin: center;
}

.hero-kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 4px;
}

.hero-credential {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 16px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 auto 8px;
  max-width: 500px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-warm);
  margin: 0 auto 24px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.hero-subtitle:hover {
  color: var(--gold-dark);
}

.hero-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-contact-item {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.hero-contact a:hover {
  text-decoration: none;
  color: var(--hero-gold);
}

.hero-contact-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.hero-contact-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hero-contact-text {
  line-height: 1.1;
}

/* EXPLORE scroll indicator */
.hero-explore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--accent-warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease;
}

.hero-explore:hover {
  text-decoration: none;
  color: var(--muted);
}

.hero-explore-line {
  width: 1px;
  height: 32px;
  background: var(--border-strong);
  transform-origin: top;
}

/* Hero animations */
@keyframes heroLineIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroExploreGrow {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-line {
    animation: heroLineIn 0.6s ease-out 0.2s both;
  }
  .hero-kicker {
    opacity: 0;
    animation: heroFadeUp 0.5s ease-out 0.3s both;
  }
  .hero-name {
    opacity: 0;
    animation: heroFadeUp 0.5s ease-out 0.4s both;
  }
  .hero-credential {
    opacity: 0;
    animation: heroFadeUp 0.5s ease-out 0.5s both;
  }
  .hero-tagline {
    opacity: 0;
    animation: heroFadeUp 0.5s ease-out 0.55s both;
  }
  .hero-contact {
    opacity: 0;
    animation: heroFadeUp 0.5s ease-out 0.65s both;
  }
  .hero-explore {
    opacity: 0;
    animation: heroFadeUp 0.5s ease-out 0.75s both;
  }
  .hero-explore-line {
    animation: heroExploreGrow 2s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line,
  .hero-kicker,
  .hero-name,
  .hero-credential,
  .hero-tagline,
  .hero-contact,
  .hero-explore,
  .hero-explore-line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Trail connector between sections */
.trail-line {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
  margin: -6px auto -16px;
  opacity: 0.5;
}

/* ===== CHAT CARD ===== */
.chat-card {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  border: 1px solid hsla(30, 20%, 70%, 0.35);
  border-radius: 0.8rem;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 50px hsla(25, 30%, 20%, 0.12), 0 2px 8px hsla(25, 30%, 20%, 0.06);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.chat-header-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  background: var(--accent-warm);
}

.chat-header-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  box-shadow: none;
}

.chip:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}

.chat-log {
  min-height: 360px;
  max-height: min(440px, 50vh);
  overflow-y: auto;
  padding: 18px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-log::-webkit-scrollbar {
  width: 10px;
}

.chat-log::-webkit-scrollbar-thumb {
  background: rgba(10, 10, 10, 0.18);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}

/* Suggestion chips */
.chat-suggestions {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
}

.chat-suggestions .suggestions-banner,
.chat-suggestions .chips {
  pointer-events: auto;
}

.suggestions-banner {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Chat messages */
.msg {
  padding: 12px 14px;
  border-radius: 18px;
  max-width: 85%;
  line-height: 1.6;
  font-size: 14px;
}

.msg.user {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  align-self: flex-end;
}

.msg.bot {
  background: var(--card);
  border: 1px solid var(--border);
  align-self: flex-start;
  color: var(--text);
}

/* Thinking state for pending AI responses */
.msg.bot.is-thinking {
  border-color: var(--border-strong);
  background: var(--card);
  position: relative;
}

.msg.bot.is-thinking::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  border: 2px solid hsla(28, 72%, 52%, 0.12);
  opacity: 0;
  animation: thinkingPulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

.msg.bot.is-thinking .msg-body {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.thinking-label {
  font-style: italic;
}

.thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.thinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  will-change: transform, opacity;
  background: var(--gold-dark);
  opacity: 0.25;
  animation: thinkingDot 1.2s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes thinkingPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes thinkingDot {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 0.9;
    transform: translateY(-2px);
  }
}

/* Status step animations (streaming pipeline steps) */
/* Override is-thinking inline-flex when steps are active */
.msg-body.has-steps {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 4px;
}
.status-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 4px;
}
.status-step.is-visible { opacity: 1; transform: translateY(0); }
.step-icon { flex-shrink: 0; color: var(--gold-dark); font-size: 0.9rem; }
.step-items {
  margin: 2px 0 0 24px;
  padding: 0;
  font-size: 0.8rem;
  color: var(--muted);
  list-style: disc;
}
.step-answer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .status-step { transition: none; opacity: 1; transform: none; }
}

.msg.intro {
  color: var(--muted);
}

.msg-body {
  color: inherit;
  line-height: 1.5;
}

/* Markdown formatting in bot messages */
.msg.bot .msg-body h1,
.msg.bot .msg-body h2,
.msg.bot .msg-body h3 {
  margin: 12px 0 6px 0;
  font-weight: 600;
  line-height: 1.3;
}

.msg.bot .msg-body h2:first-child,
.msg.bot .msg-body h3:first-child {
  margin-top: 0;
}

.msg.bot .msg-body h1 { font-size: 17px; }
.msg.bot .msg-body h2 { font-size: 15px; }
.msg.bot .msg-body h3 { font-size: 14px; }

.msg.bot .msg-body p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.msg.bot .msg-body p:last-child {
  margin-bottom: 0;
}

.msg.bot .msg-body strong {
  font-weight: 600;
  color: var(--text);
}

.msg.bot .msg-body em {
  font-style: italic;
}

.msg.bot .msg-body ul {
  margin: 2px 0 10px 0;
  padding-left: 22px;
  list-style-type: disc;
}

.msg.bot .msg-body ul:last-child {
  margin-bottom: 0;
}

.msg.bot .msg-body li {
  margin: 2px 0;
  line-height: 1.45;
}

.msg.bot .msg-body a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.msg.bot .msg-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  padding: 0.12em 0.38em;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--secondary);
}

.msg.bot .msg-body pre {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--secondary);
  overflow: auto;
}

.msg.bot .msg-body pre code {
  border: none;
  padding: 0;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .msg.bot.is-thinking::after {
    animation: none;
    opacity: 0;
  }

  .thinking-dot {
    animation: none;
    opacity: 0.55;
    transform: none;
    will-change: auto;
  }
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  align-items: center;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.chat-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 0.5rem;
  border: 1px solid var(--border-strong);
  background: hsl(40, 15%, 97%);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--ring);
}

.send-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.send-button:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.send-button:disabled {
  background: color-mix(in srgb, var(--primary) 30%, var(--card));
  color: color-mix(in srgb, white 70%, var(--muted));
  cursor: not-allowed;
}

/* AI disclaimer */
.ai-disclaimer {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: block;
  text-align: center;
  margin-bottom: 36px;
}

.section-header--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.section-header--link:hover {
  text-decoration: none;
}

.section-header--link:hover .section-label {
  color: var(--gold-dark);
}

.section-title {
  display: block;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text);
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 8px;
}

.resume {
  padding-top: 0;
}

.resume-section {
  padding: 16px 0 10px;
}

/* Collapsible resume sections — default collapsed */
.resume-section .section-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms ease;
  overflow: hidden;
}
.resume-section .section-content > * {
  overflow: hidden;
}
.resume-section.is-expanded .section-content {
  grid-template-rows: 1fr;
}

.section-toggle {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-top: 4px;
  cursor: pointer;
  transition: color 200ms ease;
}
.section-toggle::after {
  content: " \25BC";
  font-size: 9px;
}
.resume-section.is-expanded .section-toggle::after {
  content: " \25B2";
}

.resume-section h2 {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text);
}

/* ===== EXPERIENCE TIMELINE ===== */
.experience-timeline {
  position: relative;
  padding-left: 40px;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
}

.timeline-entry {
  position: relative;
  padding: 24px 28px;
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent-warm);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.timeline-meta {
  text-align: right;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}

.timeline-company {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  opacity: 0.92;
}

.timeline-bullets.is-collapsed .is-extra {
  display: none;
}

.timeline-bullets li {
  margin: 6px 0;
  line-height: 1.45;
}

.timeline-toggle {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gold-dark);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0.9;
}

.timeline-toggle:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.timeline-actions {
  display: flex;
  margin-top: 12px;
}

.timeline-ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.timeline-ask-icon {
  color: var(--accent-warm);
  font-size: 12px;
  line-height: 1;
}

.timeline-ask-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.timeline-ask-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.timeline-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--muted);
}

.timeline-tag--link {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.timeline-tag--link:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.timeline-tag--link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

/* ===== SKILLS ===== */
#skills {
  padding-top: 36px;
  padding-bottom: 36px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 6px;
}

.skills-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.skills-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 12px;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip--static,
.chip--static:hover {
  cursor: default;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: none;
}

.skills-chips .chip--static,
.skills-chips .chip--static:hover {
  background: var(--secondary);
  border-color: var(--border);
  color: var(--muted);
}

/* ===== EDUCATION & CERTIFICATIONS ===== */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 14px 0 14px;
}

.resume-grid {
  display: grid;
  gap: 18px;
}

.resume-grid--one {
  grid-template-columns: 1fr;
}

.resume-grid--two {
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.resume-card {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--card);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.resume-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.resume-card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}

.resume-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.resume-card-subtitle {
  font-size: 15px;
  color: var(--text);
  opacity: 0.9;
  margin-top: 2px;
}

.resume-card-status {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.9;
}

.resume-card-meta {
  font-size: 14px;
  color: var(--text);
  opacity: 0.8;
  white-space: nowrap;
}

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4 {
    transition-delay: 0ms;
  }
}

/* ===== FEEDBACK UI ===== */
.msg-feedback {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.feedback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.feedback-btn svg {
  width: 16px;
  height: 16px;
}

.feedback-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.feedback-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.feedback-comment {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.feedback-comment input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
}

.feedback-comment button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
}

.feedback-thanks {
  font-size: 13px;
  color: var(--muted);
}

/* ===== UNLOCK FORM (chat limit) ===== */
.unlock-prompt {
  margin-bottom: 12px;
}

.unlock-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.unlock-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--primary);
}

.unlock-submit {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
}

.unlock-error {
  margin-top: 8px;
  color: #e57373;
  font-size: 14px;
  display: none;
}

.unlock-success {
  color: var(--gold-dark);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 48px;
  padding: 80px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
  max-width: 600px;
  margin-bottom: 48px;
}

.footer-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 12px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.1;
}

.footer-subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--footer-subtitle);
  margin: 0 0 36px;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--footer-btn-text);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: none;
}

.footer-btn:hover {
  text-decoration: none;
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

.footer-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 600px;
}

.footer-separator {
  width: 100%;
  height: 1px;
  background: var(--footer-separator);
}

.footer-copyright {
  font-size: 13px;
  color: var(--footer-copyright);
  margin: 0;
}

/* ===== FEEDBACK DIALOG ===== */
.feedback-dialog {
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 32px);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.feedback-dialog::backdrop {
  background: hsla(220, 20%, 14%, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.feedback-dialog-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
}

.feedback-dialog-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}

.feedback-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--ring);
}

.feedback-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.feedback-dialog-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-dialog-btn--cancel {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

.feedback-dialog-btn--cancel:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.feedback-dialog-btn--send {
  border: none;
  background: var(--primary);
  color: white;
}

.feedback-dialog-btn--send:hover {
  background: var(--gold);
}

/* ===== MOBILE ===== */
@media (max-width: 960px) {
  body::before {
    background: none;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: hsla(40, 20%, 97%, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 32px;
    font-size: 16px;
    width: 100%;
  }

  .nav-links a::after {
    display: none;
  }

  .experience-timeline {
    padding-left: 28px;
  }

  .timeline-entry {
    padding: 18px 18px;
  }

  .timeline-entry::before {
    left: -33px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }

  .timeline-meta {
    text-align: left;
  }

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

  .resume-grid--two {
    grid-template-columns: 1fr;
  }

  .resume-section h2,
  .section-title {
    font-size: clamp(32px, 4vw, 42px);
  }


  .chat-log {
    max-height: 35vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}
