/* ============ Cron Calendar design tokens (refero: ember in an obsidian void) ============ */
:root {
  --bg: #0f0d0a;            /* obsidian canvas */
  --text: #ffffff;          /* headings, nav, first-read content */
  --text-2: #cccccc;        /* body copy, meta, borders, icons */
  --text-3: #999999;        /* de-emphasized meta */
  --ember: #ff4700;         /* primary CTA + brand mark ONLY */
  --ember-ring: #451e0d;    /* inner glow ring */
  --ember-glow: #8b2e09;    /* outer glow blur */
  --hairline: rgba(204, 204, 204, 0.12);
  --hairline-soft: rgba(204, 204, 204, 0.07);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 13, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 4px;
  background: var(--ember); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.brand-name { color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--text-2);
  padding: 6px 12px; border-radius: 9999px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(204, 204, 204, 0.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--hairline); border-radius: 9999px;
  font-family: var(--font); font-size: 12px; font-weight: 500;
  padding: 6px 12px; cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.lang-toggle:hover { color: var(--text); border-color: rgba(204, 204, 204, 0.3); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; font-family: var(--font);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  padding: 10px 18px; transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-sm { font-size: 13px; padding: 7px 14px; }

/* Primary CTA — the only ember fill, with the signature dual-layer warm glow */
.btn-primary {
  background: var(--ember); color: #fff;
  border: 1px solid var(--ember-ring);
  box-shadow: inset 0 2px 10px rgba(255, 153, 102, 0.22),
              inset 0 -2px 10px rgba(69, 30, 13, 0.4),
              0 0 24px rgba(139, 46, 9, 0.45);
}
.btn-primary:hover {
  background: #ff5c1a;
  box-shadow: inset 0 2px 10px rgba(255, 153, 102, 0.28),
              inset 0 -2px 10px rgba(69, 30, 13, 0.45),
              0 0 32px rgba(139, 46, 9, 0.6);
}

/* Secondary — hairline, no elevation */
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(204, 204, 204, 0.35); }

/* ============ Hero ============ */
.hero { border-bottom: 1px solid var(--hairline-soft); }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  align-items: center; gap: 56px;
  padding: 96px 24px 88px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 400; color: var(--text-2);
  border: 1px solid var(--hairline); border-radius: 9999px;
  padding: 6px 14px 6px 11px; margin-bottom: 28px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.9; }
.hero-title {
  color: var(--text); font-weight: 700;
  font-size: clamp(56px, 9vw, 118px); line-height: 0.9;
  letter-spacing: -0.021em; margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px; line-height: 1.55; color: var(--text-2);
  letter-spacing: -0.011em; max-width: 540px; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { display: flex; justify-content: center; }
.hero-photo img {
  width: min(280px, 64vw); height: min(280px, 64vw);
  object-fit: cover; object-position: center 25%;
  display: block;
  filter: saturate(0.92);
}

/* ============ Sections ============ */
.section { border-bottom: 1px solid var(--hairline-soft); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section-title {
  color: var(--text); font-weight: 700; font-size: 22px;
  letter-spacing: -0.021em; margin-bottom: 8px;
}
.section-desc { color: var(--text-3); font-size: 15px; margin-bottom: 36px; }
.mt { margin-top: 56px; }

/* ============ Timeline — sharp rows on the canvas ============ */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 170px 1fr; gap: 24px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--hairline-soft);
  padding: 24px 8px;
  transition: background 0.2s;
}
.tl-item:last-child { border-bottom: 1px solid var(--hairline-soft); }
.tl-item:hover { background: rgba(204, 204, 204, 0.03); }
.tl-meta { display: flex; flex-direction: column; gap: 4px; }
.tl-date { font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0.01em; }
.tl-place { font-size: 13px; color: var(--text-3); opacity: 0.8; }
.tl-role {
  color: var(--text); font-weight: 700; font-size: 18px;
  letter-spacing: -0.021em; margin-bottom: 3px;
}
.tl-org { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.tl-text { font-size: 14px; line-height: 1.55; color: var(--text-2); max-width: 640px; }

/* ============ Cards / grids — sharp edges, hairline dividers ============ */
.edu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid var(--hairline-soft);
}
.card {
  background: transparent;
  border: none;
  border-right: 1px solid var(--hairline-soft);
  padding: 24px 26px;
  transition: background 0.2s;
}
.card:last-child { border-right: none; }
.card:hover { background: rgba(204, 204, 204, 0.03); }
.card .tl-date { display: inline-block; margin-bottom: 10px; }
.card-title { color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: -0.014em; margin-bottom: 5px; }
.card-text { font-size: 13.5px; color: var(--text-2); }

/* ============ Pills — announcement chips ============ */
.skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 13px; font-weight: 400; color: var(--text-2);
  border: 1px solid var(--hairline); border-radius: 9999px;
  padding: 7px 14px; background: transparent;
  transition: color 0.2s, border-color 0.2s;
}
.pill:hover { border-color: rgba(204, 204, 204, 0.35); color: var(--text); }

/* ============ Contact ============ */
.contact-card {
  border: 1px solid var(--hairline-soft);
  padding: 48px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 22px;
}
.contact-sub { font-size: 16px; color: var(--text-2); max-width: 460px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============ Footer ============ */
.footer { padding: 36px 24px 44px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-3);
}
.footer-muted { font-size: 12.5px; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 56px; gap: 36px; }
  .hero-photo { order: -1; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding: 20px 8px; }
  .section-inner { padding: 56px 24px; }
  .card { border-right: none; border-bottom: 1px solid var(--hairline-soft); }
  .card:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-title { font-size: clamp(44px, 13vw, 64px); }
  .footer-inner { flex-direction: column; gap: 6px; }
}