/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --foreground:   #111;
  --background:   #fff;
  --grey1:        #111;
  --grey2:        #555;
  --grey3:        #999;
  --border:       #e5e5e5;
  --wash1:        #e5e5e5;
  --wash2:        #f2f2f2;

  --spacing-xxs:  4px;
  --spacing-xs:   8px;
  --spacing-sm:   16px;
  --spacing-md:   24px;
  --spacing-lg:   32px;
  --spacing-xl:   48px;
  --spacing-xxl:  64px;

  --radius:       4px;
  --radius-md:    10px;
  --transition:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --foreground:   #eee;
  --background:   #111;
  --grey1:        #eee;
  --grey2:        #999;
  --grey3:        #555;
  --border:       #222;
  --wash1:        #1a1a1a;
  --wash2:        #161616;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  overflow-y: scroll;
  transition: background var(--transition), color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Page shell ─────────────────────────────────────────── */
.page-shell {
  max-width: 540px;
  margin: 0 auto;
  padding: 80px 16px;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.theme-toggle {
  background: var(--wash2);
  border: 1px solid var(--border);
  color: var(--grey2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--wash1);
  color: var(--grey1);
}

/* ─── Homepage ───────────────────────────────────────────── */
.homepage {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxl);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--wash2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxs);
}

.hero-name {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--grey1);
  letter-spacing: -0.02em;
}

.hero-role {
  font-size: 14px;
  font-weight: 400;
  color: var(--grey3);
  letter-spacing: -0.005em;
}

/* ─── About ──────────────────────────────────────────────── */
.about {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.about-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--grey1);
  letter-spacing: -0.005em;
}

.about-text a {
  color: var(--grey1);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}

.about-text a:hover {
  border-color: var(--grey1);
}

/* ─── Section title ──────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

/* ─── Experience / Timeline ──────────────────────────────── */
.experience {
  display: flex;
  flex-direction: column;
}

.timeline {
  display: flex;
  flex-direction: column;
  row-gap: var(--spacing-sm);
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 var(--spacing-sm);
  padding: var(--spacing-xs) 0;
}

.timeline-period {
  font-size: 12px;
  color: var(--grey3);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.timeline-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey1);
  margin-bottom: var(--spacing-xxs);
  letter-spacing: -0.005em;
}

.timeline-company {
  font-size: 13px;
  font-weight: 400;
  color: var(--grey2);
}

/* ─── Toolbox ─────────────────────────────────────────────── */
.toolbox {
  display: flex;
  flex-direction: column;
}

.toolbox-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  align-items: center;
}

.toolbox-label {
  font-size: 13px;
  color: var(--grey3);
}

.tool-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.tool-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon img {
  width: 20px;
  height: 20px;
  display: block;
  filter: grayscale(1) opacity(0.35);
  transition: filter var(--transition);
}

.tool-icon:hover img {
  filter: none;
}

[data-theme="dark"] .tool-icon img {
  filter: grayscale(1) invert(1) opacity(0.45);
}

[data-theme="dark"] .tool-icon:hover img {
  filter: invert(0);
}

/* Tooltip */
.tool-icon::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--grey1);
  color: var(--background);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.tool-icon:hover::after {
  opacity: 1;
}

.tool-icon-svg {
  color: #aaa;
  transition: color var(--transition);
}

.tool-icon-svg svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tool-icon-svg:hover {
  color: #10A37F;
}

[data-theme="dark"] .tool-icon-svg {
  color: #555;
}

[data-theme="dark"] .tool-icon-svg:hover {
  color: #10A37F;
}

/* ─── Contact ────────────────────────────────────────────── */
.contact {
  display: flex;
  flex-direction: column;
}

.contact-list {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 var(--spacing-sm);
  padding: var(--spacing-xs) 0;
  align-items: baseline;
}

.contact-label {
  font-size: 13px;
  color: var(--grey3);
}

.contact-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--grey1);
  letter-spacing: -0.005em;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--grey2);
}

/* ─── Moodboards ─────────────────────────────────────────── */
.moodboards {
  display: flex;
  flex-direction: column;
}

.arena-channels {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.arena-channel {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.arena-channel-meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 var(--spacing-sm);
  align-items: baseline;
}

.arena-channel-period {
  font-size: 12px;
  color: var(--grey3);
}

.arena-channel-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey1);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}

.arena-channel-title:hover {
  color: var(--grey2);
}

.arena-channel-count {
  font-size: 13px;
  color: var(--grey3);
  font-weight: 400;
}

.arena-scroll {
  display: flex;
  gap: var(--spacing-xs);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* break out of page-shell */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 270px);
  padding-right: 32px;
}

.arena-scroll::-webkit-scrollbar {
  display: none;
}

.arena-thumb-link {
  display: block;
  flex-shrink: 0;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.arena-thumb {
  width: 200px;
  height: 220px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--wash2);
  display: block;
  transition: opacity var(--transition);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.07);
}

.arena-thumb-link:hover .arena-thumb {
  opacity: 0.85;
}

.arena-thumb-placeholder {
  width: 200px;
  height: 220px;
  border-radius: var(--radius-md);
  background: var(--wash2);
  flex-shrink: 0;
}

/* ─── Activity Feed ──────────────────────────────────────── */
.activity {
  display: flex;
  flex-direction: column;
}

.activity-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.activity-header .section-label {
  margin-bottom: 0;
}

.activity-updated {
  font-size: 11px;
  color: var(--grey3);
}

.feed {
  display: flex;
  flex-direction: column;
}

.feed-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 var(--spacing-sm);
  padding: var(--spacing-sm) 0;
}

.feed-item.is-link {
  cursor: pointer;
}

.feed-item.is-link:hover .feed-title {
  color: var(--grey2);
}

.feed-date {
  font-size: 12px;
  color: var(--grey3);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.feed-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey3);
  margin-bottom: 4px;
}

.feed-platform-icon {
  width: 11px;
  height: 11px;
  display: inline-block;
  vertical-align: middle;
  filter: grayscale(1) opacity(0.4);
  flex-shrink: 0;
}

[data-theme="dark"] .feed-platform-icon {
  filter: grayscale(1) invert(1) opacity(0.4);
}

.feed-type-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.type-article  .feed-type-dot { background: #3e9fff; }
.type-medium   .feed-type-dot { background: #3e9fff; }
.type-linkedin .feed-type-dot { background: #0a66c2; }
.type-talk     .feed-type-dot { background: #a78bfa; }
.type-case     .feed-type-dot { background: #f09637; }
.type-ai       .feed-type-dot { background: #34d399; }
.type-mentorship .feed-type-dot { background: #fb923c; }
.type-career   .feed-type-dot { background: #f87171; }
.type-award    .feed-type-dot { background: #fbbf24; }

.feed-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey1);
  line-height: 1.4;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  transition: color var(--transition);
}

.feed-title-arrow {
  font-size: 11px;
  color: var(--grey3);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.feed-item.is-link:hover .feed-title-arrow {
  opacity: 1;
  transform: translate(2px, -1px);
}

.feed-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--grey2);
  line-height: 1.5;
}

.feed-loading {
  color: var(--grey3);
  font-size: 13px;
  padding: var(--spacing-sm) 0;
}

/* ─── Activities page ────────────────────────────────────── */
.activities-back {
  position: fixed;
  top: 32px;
  left: 32px;
  font-size: 13px;
  color: var(--grey3);
  transition: color var(--transition);
  z-index: 10;
}

.activities-back:hover {
  color: var(--grey1);
}

.activities-shell {
  max-width: 540px;
  margin: 0 auto;
  padding: 80px 16px;
}

.activities-intro {
  margin-bottom: var(--spacing-xxl);
}

.activities-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--grey1);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.activities-subtitle {
  font-size: 14px;
  color: var(--grey2);
  line-height: 1.5;
}

.activities-list {
  display: flex;
  flex-direction: column;
}

.act-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeUp 0.4s ease both;
}

.act-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey1);
  letter-spacing: -0.005em;
  line-height: 1.4;
  transition: color var(--transition);
}

a.act-title:hover {
  color: var(--grey2);
}

.act-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--grey2);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* ─── Show more / Back ───────────────────────────────────── */
.show-more {
  display: inline-block;
  margin-top: var(--spacing-sm);
  font-size: 13px;
  color: var(--grey2);
  transition: color var(--transition);
}

.show-more:hover {
  color: var(--grey1);
}

.back-link {
  font-size: 12px;
  color: var(--grey3);
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--grey1);
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding-top: var(--spacing-xxl);
  font-size: 12px;
  color: var(--grey3);
}

/* ─── Entrance animations ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal: JS adds .will-animate, then .animated when in view */
.will-animate {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.will-animate.animated {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .page-shell {
    padding: 48px 16px;
  }

  .feed-item,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
}
