/* ── Custom Properties ── */
:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #d8d4cc;
  --text-muted: #888580;
  --heading: #f0ece1;
  --green: #4ade80;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 720px;
  --radius: 10px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  padding: 0 1.5rem 6rem;
}

a {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: var(--text-muted);
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.pronounce-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1.4rem;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}

.pronounce-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pronounce-btn:hover {
  opacity: 0.75;
}

.pronounce-btn:active {
  opacity: 0.5;
}

.pronounce-btn.is-playing svg {
  animation: pulse-speaker 0.6s ease-in-out infinite alternate;
}

@keyframes pulse-speaker {
  from { opacity: 1; }
  to   { opacity: 0.4; }
}

.bio {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 520px;
  margin-bottom: 1.2rem;
}

.status-list {
  list-style: none;
  margin-bottom: 1.8rem;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.status-list strong {
  color: var(--heading);
  font-weight: 500;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
}

.links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.links a:hover {
  color: var(--heading);
}

.email-copied-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  background: var(--heading);
  color: var(--bg);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  z-index: 9999;
}

.email-copied-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sep {
  color: var(--border);
}

/* ── Scroll fade-in ── */
.hero,
.section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero.is-visible,
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Sections ── */
.section {
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ── Accordion ── */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.accordion-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.accordion-item:first-child {
  border-top: none;
}

.accordion-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: opacity 0.15s;
}

.accordion-row:hover {
  opacity: 0.85;
}

.accordion-row:active {
  opacity: 0.65;
}

.accordion-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
  opacity: 1;
}

.company-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
  font-family: var(--font-body);
}

.company-icon--img {
  background: none;
  padding: 0;
  overflow: hidden;
}

.company-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.company-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.company-name {
  font-weight: 500;
  color: var(--heading);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
}

.dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  padding-right: 0.75rem;
}

.chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.accordion-row[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
  color: var(--green);
}

.accordion-row[aria-expanded="true"] .company-name {
  color: var(--heading);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
  padding-left: calc(36px + 1rem);
}

.accordion-body.is-open {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

/* ── Promotion Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  margin: 0.6rem 0 1.2rem;
  padding-left: 0.1rem;
}

.timeline-stop {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
}

.timeline-stop:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  width: 1px;
  height: calc(100% + 4px);
  background: var(--border);
}

.timeline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
  transition: background 0.2s;
}

.timeline-stop--current .timeline-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.timeline-content {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 0.85rem;
  color: var(--heading);
  font-weight: 400;
}

.timeline-stop--current .timeline-role {
  font-weight: 500;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.expand-intro {
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-style: normal;
}

.accordion-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
  transition: opacity 0.15s;
}
.accordion-link-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.accordion-link-btn:hover {
  opacity: 0.85;
}

.accordion-inner ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
}

.accordion-inner ul li {
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}

.accordion-inner ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.accordion-inner ul li strong {
  color: var(--heading);
  font-weight: 500;
}

.accordion-inner ul li a {
  font-size: inherit;
  color: var(--text-muted);
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s ease;
  cursor: pointer;
}

.card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.card.is-visible:hover {
  transform: translateY(-3px);
  border-color: #3a3a3a;
}

.card--static {
  cursor: default;
}

.card--static:hover {
  transform: none;
  border-color: var(--border);
}

.card-image {
  height: 180px;
  flex-shrink: 0;
}

.card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  line-height: 1.6;
  width: fit-content;
}

.card-tag--award,
.card-tag--blog {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.3;
}

.card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .dates {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
