:root {
  --bg: #f3eee2;
  --bg-strong: #e8dec4;
  --panel: rgba(250, 247, 239, 0.96);
  --panel-strong: rgba(250, 247, 239, 1);
  --text: #1d2735;
  --muted: #4d5968;
  --accent: #1b365d;
  --accent-dark: #122744;
  --gold: #a89968;
  --line: rgba(27, 54, 93, 0.16);
  --shadow: none;
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans", "Arial Unicode MS", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(27, 54, 93, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(168, 153, 104, 0.16), transparent 26%),
    linear-gradient(180deg, #faf7ef 0%, #f2e8d2 58%, #eadcc3 100%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.hero,
.section,
.footer {
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px 0 32px;
  overflow: hidden;
}

.topbar {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  gap: 16px;
}

.hero-top-title {
  display: inline-flex;
  align-items: center;
  width: 360px;
}

.brand-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
}

.bio-top-title .brand-logo {
  width: min(220px, 100%);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  color: var(--muted);
}

.hero-content {
  padding: 20px 0 24px;
  max-width: 860px;
}

.eyebrow,
.section-label,
.timeline-date,
.tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow,
.section-label {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Segoe UI", "Noto Sans", "Arial Unicode MS", Arial, sans-serif;
  margin: 0;
  font-weight: 700;
}

h1 {
  margin-top: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
  max-width: none;
}

h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

h3 {
  font-size: 1.35rem;
}

.hero-copy,
.section-heading p,
.intro-panel p,
.timeline-summary {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.timeline-url {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.timeline-url a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-copy {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: var(--gold);
  color: var(--accent-dark);
}

.button-secondary {
  background: transparent;
  border-color: rgba(27, 54, 93, 0.18);
}

.timeline-entry {
  border: 0;
  background: transparent;
}

.section {
  margin-top: 24px;
  padding: 30px 0;
}

.section-heading {
  max-width: 660px;
}

.bio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
  padding: 20px 0 8px;
}

.bio-photo-wrap {
  max-width: 320px;
}

.bio-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.bio-copy {
  max-width: 760px;
}

.bio-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bio-name {
  margin-top: 0;
}

.bio-lede,
.bio-copy p,
.bio-list {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.bio-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.bio-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 28px;
  padding: 12px 0;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: var(--accent);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  padding: 28px 0;
}

.timeline-date {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  gap: 12px;
  align-content: start;
  text-align: left;
}

.timeline-marker {
  position: relative;
  min-height: 18px;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--accent-dark);
  border: 4px solid var(--bg);
}

.timeline-content {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 360px;
}

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

.timeline-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(27, 54, 93, 0.08);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(27, 54, 93, 0.16);
}

.timeline-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.timeline-title-row h3 {
  margin: 0;
}

.timeline-project-title,
.timeline-project-title a {
  color: var(--text);
  text-decoration: none;
}

.timeline-entry:nth-child(odd) .timeline-project-title,
.timeline-entry:nth-child(odd) .timeline-project-title a {
  text-align: right;
}

.timeline-entry:nth-child(odd) .timeline-date,
.timeline-entry:nth-child(odd) .timeline-content {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.timeline-entry:nth-child(odd) .timeline-date {
  margin-bottom: 12px;
  padding-right: 56px;
}

.timeline-entry:nth-child(odd) .timeline-content {
  padding-right: 56px;
}

.timeline-entry:nth-child(odd) .timeline-marker {
  grid-column: 2;
}

.timeline-entry:nth-child(even) .timeline-date,
.timeline-entry:nth-child(even) .timeline-content {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.timeline-entry:nth-child(even) .timeline-date {
  margin-bottom: 12px;
  padding-left: 36px;
}

.timeline-entry:nth-child(even) .timeline-content {
  padding-left: 36px;
}

.timeline-entry:nth-child(even) .timeline-marker {
  grid-column: 2;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 0;
  background: rgba(27, 54, 93, 0.04);
  border: 1px solid rgba(27, 54, 93, 0.1);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.intro-panel,
.hero-metrics article {
  box-shadow: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 30px 0 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--accent-dark);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 900px) {
  .bio-layout,
  .bio-columns,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .bio-layout {
    gap: 24px;
  }

  .bio-photo-wrap {
    max-width: 260px;
  }

  .timeline-list::before {
    left: 14px;
    width: 3px;
    transform: none;
  }

  .timeline-entry {
    grid-template-columns: 24px 1fr;
    gap: 0 18px;
    padding: 22px 0;
  }

  .timeline-date {
    grid-column: 2;
    padding: 0;
    margin-bottom: 10px;
    text-align: left;
    justify-self: start;
  }

  .timeline-marker {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .timeline-marker::before {
    left: 0;
    transform: none;
  }

  .timeline-content {
    grid-column: 2;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    justify-self: stretch;
    text-align: left;
  }

  .timeline-entry:nth-child(odd) .timeline-date,
  .timeline-entry:nth-child(odd) .timeline-content,
  .timeline-entry:nth-child(even) .timeline-date,
  .timeline-entry:nth-child(even) .timeline-content {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }

  .timeline-entry:nth-child(odd) .timeline-marker,
  .timeline-entry:nth-child(even) .timeline-marker {
    grid-column: 1;
  }

}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 1180px);
    margin: 8px auto 28px;
  }

  .hero,
  .section,
  .footer {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .hero-top-title {
    width: auto;
  }

  .topbar-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }
}
