:root {
  /* Bogi's brand palette */
  --pink: #ea638c;
  --burgundy: #89023e;
  --sage: #a4ab93;
  --slate: #30343f;
  --near-black: #1b2021;

  --ink: var(--near-black);
  --ink-soft: color-mix(in srgb, var(--slate) 78%, white 22%);
  --bg: #ffffff;
  --bg-alt: color-mix(in srgb, var(--sage) 14%, white 86%);
  --accent: var(--burgundy);
  --accent-soft: color-mix(in srgb, var(--pink) 16%, white 84%);
  --border: color-mix(in srgb, var(--slate) 14%, white 86%);
  --radius: 10px;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }

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

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo { font-weight: 700; font-size: 1.05rem; color: var(--ink); }

.site-header nav a {
  margin-left: 28px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header nav a:hover { color: var(--accent); text-decoration: none; }

.hero {
  padding: 96px 0 80px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text { flex: 1; min-width: 0; }

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  max-width: 780px;
  color: var(--ink);
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--accent-soft);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  background: color-mix(in srgb, var(--accent) 80%, black 20%);
  text-decoration: none;
}

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 28px;
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.card p { margin: 0; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.entry:last-child { border-bottom: none; padding-bottom: 0; }

.entry-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.entry-body h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.entry-org {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0;
}

.entry-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.entry-logo {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.entry-logo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
}

.entry-logo .logo-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.timeline-more {
  position: relative;
  max-height: 130px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.timeline-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg) 85%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.timeline-more.expanded {
  max-height: 4000px;
}

.timeline-more.expanded::after {
  opacity: 0;
}

.timeline-more .entry:first-child {
  padding-top: 28px;
}

.show-more-btn {
  display: block;
  margin: 32px auto 0;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.show-more-btn:hover {
  background: var(--accent-soft);
}

.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edu-list li {
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.contact-section {
  text-align: center;
  background: var(--accent-soft);
}

.contact-section h2 { margin-bottom: 12px; }
.contact-section p { max-width: 480px; margin-left: auto; margin-right: auto; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-attribution {
  margin-top: 6px !important;
  font-size: 0.8rem !important;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .site-header nav a { margin-left: 16px; font-size: 0.88rem; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 28px; }
  .hero-photo { width: 150px; height: 150px; }
}
