:root {
  --ink: #12161c;
  --ink-soft: #3a424e;
  --muted: #6b7380;
  --paper: #f5f6f8;
  --surface: #ffffff;
  --line: #d8dde6;
  --accent: #c45c26;
  --accent-hover: #a3491a;
  --hero-veil: rgba(10, 14, 20, 0.42);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --max: 720px;
  --wide: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.28) 0%, var(--hero-veil) 55%, rgba(8, 12, 18, 0.72) 100%),
    url("../images/home.jpg") center 45% / cover no-repeat;
  overflow: hidden;
}

.hero__inner {
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto;
  padding: 0 0 clamp(3.5rem, 8vh, 5.5rem);
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

.hero__headline {
  margin: 0.85rem 0 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 280ms forwards;
}

.hero__lede {
  margin: 1rem 0 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 420ms forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 560ms forwards;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: #fff;
  color: var(--ink);
}

.button--primary:hover {
  background: #f0f2f5;
  color: var(--ink);
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button--ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button--accent {
  background: var(--accent);
  color: #fff;
}

.button--accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section--paper {
  background: var(--surface);
}

.section__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.section__inner--wide {
  width: min(100% - 2.5rem, var(--wide));
}

.section__label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__intro {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Experience —— */
.roles {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.role {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.role:last-child {
  border-bottom: 1px solid var(--line);
}

.role__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.role__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.role__dates {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.role__org {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.role__points {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.role__points li + li {
  margin-top: 0.45rem;
}

/* —— Capabilities —— */
.capabilities {
  display: grid;
  gap: 2rem;
  margin: 2.25rem 0 0;
}

@media (min-width: 720px) {
  .capabilities {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.capability h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.capability ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.capability li + li {
  margin-top: 0.35rem;
}

/* —— CTA band —— */
.cta {
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.55), rgba(8, 12, 18, 0.72)),
    url("../images/section3.jpg") center 40% / cover no-repeat;
  color: #fff;
  text-align: center;
}

.cta .section__label {
  color: rgba(255, 255, 255, 0.7);
}

.cta .section__title {
  color: #fff;
}

.cta .section__intro {
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.88);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

/* —— Footer —— */
.site-footer {
  padding: 1.75rem 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__name,
  .hero__headline,
  .hero__lede,
  .hero__actions,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
