:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.company-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.company-link:hover,
.company-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: grid;
  place-items: center;
  z-index: 50;
  opacity: 1;
  transition: opacity 400ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loader__pulse {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: rgba(37, 99, 235, 0.9);
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 6vw;
}

.topbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  z-index: 5;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}


.hero {
  padding: 56px 0 40px;
}

.eyebrow {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 12px;
}

h1 {
  font-family: "Poppins", "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 10px;
}

.hero__name {
  color: var(--fg);
  font-family: "Poppins", "Space Grotesk", "Segoe UI", sans-serif;
}

.hero__lede {
  color: var(--muted);
  margin: 0 0 18px;
}

.summary {
  margin: 0 0 24px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  font-size: 0.95rem;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}


.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 20;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(720px, 92vw);
  background: #ffffff;
  color: var(--fg);
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  border: 1px solid var(--line);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal__header h3 {
  font-family: "Poppins", "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  margin: 0;
}

.modal__close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.modal__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal__form input,
.modal__form textarea {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--fg);
  padding: 12px 14px;
  font-size: 0.95rem;
}

.modal__form input::placeholder,
.modal__form textarea::placeholder {
  color: rgba(71, 85, 105, 0.6);
}

.modal__form textarea {
  resize: vertical;
  min-height: 140px;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal__note {
  margin: 0;
  color: var(--muted);
}

.modal__note a {
  color: var(--accent);
  text-decoration: none;
}

.modal__actions {
  display: flex;
  gap: 12px;
}

.modal .btn {
  background: var(--accent);
}

.modal .btn--ghost {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.section {
  padding: 32px 0 12px;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: "Poppins", "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  margin: 0 0 18px;
}

.role {
  padding: 18px 0 6px;
}

.role__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role__header h3 {
  font-family: "Poppins", "Space Grotesk", "Segoe UI", sans-serif;
}

.role__meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.role ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.skills h3 {
  margin-top: 0;
}

.skills ul {
  padding-left: 18px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer h2 {
  margin: 0 0 6px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer__note {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .footer__content {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer__actions {
    order: 1;
  }

  .footer__note {
    order: 2;
    margin-top: 12px;
  }

  .modal__actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer__actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .footer__content > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
