:root {
  --brand: #AF1C2E;
  --bg: #f7f4f4;
  --text: #111;

  /* font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* fonts */
  --ui: "Lexend", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;

  --muted: #5f5759;
  --line: rgba(17, 17, 17, 0.12);
  --card: #fff;
  --radius: 8px;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 0.8rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-weight: var(--weight-bold);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell,
.footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.hero {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.7rem;
  min-height: 88svh;
  text-align: center;
}

.hero > * {
  max-width: 760px;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(175, 28, 46, 0.15);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(4rem, 18vw, 9rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
}

.subtitle {
  margin-bottom: 0;
  color: var(--brand);
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: var(--weight-semibold);
}

.card-copy,
.about p:not(.eyebrow),
.footer {
  color: var(--muted);
}

.identity-map {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.ecosystem-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.card {
  display: grid;
  flex: 0 1 100%;
  min-height: 10rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 180ms ease, transform 180ms ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-0.2rem);
}

.card-title {
  align-self: end;
  margin-top: 3rem;
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
}

.card-copy {
  max-width: 18rem;
}

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

.card-accent .card-copy {
  color: rgba(255, 255, 255, 0.78);
}

.about {
  max-width: 760px;
}

.about p:not(.eyebrow) {
  font-size: clamp(1.15rem, 4vw, 1.55rem);
}

.hiring {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--card);
}

.hiring h2 {
  margin-bottom: 1rem;
}

.hiring p:not(.eyebrow) {
  max-width: 34rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: var(--weight-bold);
  transition: transform 180ms ease;
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
}

.button::after {
  content: " →";
}

.button-secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.button:hover {
  transform: translateY(-0.2rem);
}

.card:focus-visible,
.button:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  justify-content: center;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--brand);
}

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

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

@media (min-width: 680px) {
  .site-shell,
  .footer {
    width: min(100% - 3rem, var(--max));
  }

  .card {
    flex-basis: calc(50% - 0.45rem);
  }

  .hiring {
    grid-template-columns: 1fr auto;
  }

  .button {
    width: auto;
    min-width: 9rem;
  }
}

@media (min-width: 980px) {
  .card {
    flex-basis: calc(33.333% - 0.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
