/* ==========================================================================
   Design tokens — see DESIGN.md ("The Warm Desk")
   ========================================================================== */
:root {
  --cream: #f5f3ee;
  --card: #ffffff;
  --border: #e8e3d7;
  --ink: #262421;
  --ink-soft: #6b675e;
  --accent: #d97757;
  --accent-deep: #bf5f3f;
  --accent-tint: #f6e4da;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --shadow-resting: 0 1px 2px rgba(38, 36, 33, 0.05), 0 1px 1px rgba(38, 36, 33, 0.04);
  --shadow-lifted: 0 8px 24px rgba(38, 36, 33, 0.08);

  --edge: 24px;
  --content-max: 900px;
  --hero-max: 1160px;
  --prose-max: 700px;
}

@media (min-width: 900px) {
  :root { --edge: 40px; }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--edge);
  background: rgba(245, 243, 238, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 1rem;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-active {
  color: var(--ink);
  border-color: var(--accent);
}
.nav-link--cta { color: var(--accent-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); display: block; }

@media (max-width: 780px) {
  .nav__links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav-link { padding: 18px var(--edge); border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  max-width: var(--hero-max);
  margin: 0 auto;
  padding: 120px var(--edge) 80px;
  display: flex;
  flex-direction: column;
}

.hero__visual {
  display: none;
}

@media (min-width: 1000px) {
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .hero__text { flex: 1 1 auto; min-width: 0; }
  .hero__visual {
    display: block;
    flex: 0 0 260px;
    width: 260px;
    height: auto;
  }
}

/* Line-art illustrations (hero rack skyline, about horizon, leadership node graph) */
.illus-base { stroke: var(--border); stroke-width: 1; }
.illus-rail { stroke: var(--ink-soft); stroke-width: 1.25; }
.illus-tick { stroke: var(--border); stroke-width: 1.25; }
.illus-tick--active { stroke: var(--accent); stroke-width: 2; }
.illus-edge { stroke: var(--border); stroke-width: 1; }
.illus-path { stroke: var(--ink-soft); stroke-width: 1.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.illus-node { fill: var(--card); stroke: var(--ink-soft); stroke-width: 1.25; }
.illus-node--lead { fill: var(--accent); stroke: var(--accent); }

.about__visual {
  display: block;
  width: 100%;
  max-width: var(--prose-max);
  height: auto;
  margin-top: 48px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  margin-bottom: 20px;
}

.hero__name {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.hero__role {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero__meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.hero__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.stats__item:first-child { padding-left: 0; border-left: none; }

.stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}

.stats__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn--primary {
  border: 1px solid var(--accent);
  color: #ffffff;
  background: var(--accent);
  box-shadow: var(--shadow-resting);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: var(--shadow-lifted);
}
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--ink-soft);
  background: var(--card);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--ink-soft);
  color: var(--ink);
  box-shadow: var(--shadow-lifted);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 112px var(--edge) 0;
}
.section:last-of-type { padding-bottom: 112px; }

.section__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.section__intro {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: var(--prose-max);
}

.section__body { max-width: var(--prose-max); }
.lede { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.section__body p:last-child { color: var(--ink-soft); }

/* ==========================================================================
   Timeline (experience) — each role is its own card
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline__item {
  position: relative;
}

.timeline__content {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-resting);
  padding: 32px;
}

.timeline__marker {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}
.timeline__item--current .timeline__marker {
  background: var(--accent);
}
.timeline__item--current .timeline__content {
  padding-left: 40px;
}

.timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 16px;
}

.timeline__title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}
.timeline__company { font-weight: 400; color: var(--ink-soft); }

.timeline__dates {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.timeline__points { max-width: 64ch; }
.timeline__points li {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 12px;
  padding-left: 18px;
  position: relative;
}
.timeline__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--border);
}
.timeline__points li:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
  .timeline__content { padding: 24px; }
  .timeline__marker { left: 12px; top: 12px; }
  .timeline__item--current .timeline__content { padding-left: 32px; }
}

/* ==========================================================================
   Leadership block
   ========================================================================== */
.leadership-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.leadership__visual {
  display: none;
}

@media (min-width: 1000px) {
  .leadership-row { flex-direction: row; align-items: center; gap: 48px; }
  .leadership-block { flex: 1 1 auto; }
  .leadership__visual {
    display: block;
    flex: 0 0 200px;
    width: 200px;
    height: auto;
  }
}

.leadership-block {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-resting);
  padding: 40px;
}

.leadership-block__list li {
  font-size: 1rem;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
  margin-bottom: 18px;
}
.leadership-block__list li:last-child { margin-bottom: 0; }
.leadership-block__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 620px) {
  .leadership-block { padding: 28px; }
}

/* ==========================================================================
   Skill tags
   ========================================================================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 1rem;
  background: var(--accent-tint);
  color: var(--ink);
  transition: background 0.2s, box-shadow 0.2s;
}
.tag:hover { background: var(--card); box-shadow: var(--shadow-lifted); }

/* ==========================================================================
   Credential badges
   ========================================================================== */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.badges__item {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-resting);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.badges__issuer {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.badges__name {
  font-size: 1rem;
  color: var(--ink);
}
.badges__date {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ==========================================================================
   Contact / footer
   ========================================================================== */
.section--contact .section__intro { max-width: 60ch; }

.footer {
  max-width: var(--content-max);
  margin: 112px auto 0;
  padding: 28px var(--edge) 64px;
  border-top: 1px solid var(--border);
}
.footer p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
