:root {
  --brand-primary: #1fa284;
  --brand-light: #a5dace;
  --brand-dark: #06201a;
  --grey-01: #f3f7f7;
  --grey-03: #b3b8b8;
  --grey-10: #0a0c0d;
  --white: #fff;

  --surface: var(--grey-10);
  --grid-line: rgba(184, 247, 255, 0.09);

  /* 24px at the 390px mobile artboard → 120px at the 1440px desktop artboard */
  --gutter: clamp(1.5rem, 1.5rem + (100vw - 390px) * 0.0914, 7.5rem);
  --content-max: 1200px;
}

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

body,
h1,
p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--surface);
  color: var(--grey-03);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 900px);
  padding-block: clamp(3rem, 9vw, 7.375rem);
  padding-inline: var(--gutter);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    52% 42% at -2% 20%,
    rgba(48, 143, 120, 0.85) 0%,
    rgba(33, 105, 89, 0.55) 26%,
    rgba(21, 62, 54, 0.3) 50%,
    rgba(17, 24, 24, 0) 76%
  );
}

/* Faint vertical rhythm lines, matched to the content grid. */
.hero__grid {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  width: min(100% - var(--gutter) * 2, var(--content-max));
  margin-inline: auto;
  background-image: repeating-linear-gradient(
    to right,
    var(--grid-line) 0 1px,
    transparent 1px calc(100% / 7)
  );
  background-size: calc(100% + 1px) 100%;
  border-right: 1px solid var(--grid-line);
  opacity: 0.9;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 495fr) minmax(0, 513fr);
  /* 64px where the two-column layout starts → 192px at the 1440px artboard */
  column-gap: clamp(4rem, 4rem + (100vw - 1000px) * 0.29, 12rem);
  align-items: center;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
}

.hero__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero__col--text {
  gap: clamp(1.5rem, 2.6vw, 2rem);
}

.hero__col--media {
  gap: clamp(0.75rem, 1.4vw, 1rem);
}

.hero__intro {
  display: flex;
  flex-direction: column;
}

.hero__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  /* row-gap only takes effect in the narrow band where the status wraps below the title */
  gap: 0.75rem;
}

.hero__title {
  color: var(--white);
  font-size: clamp(1.75rem, 1.55rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.28;
}

.hero__subtitle {
  color: var(--brand-light);
  font-style: italic;
}

.hero__bio {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  text-wrap: pretty;
}

.hero__bio-highlight {
  color: var(--brand-light);
}

/* ---------- Availability status ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--white);
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.status__dot {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}

.status__dot::before,
.status__dot::after {
  content: "";
  position: absolute;
  border-radius: 2px;
}

.status__dot::before {
  width: 14px;
  height: 14px;
  background: var(--brand-primary);
  opacity: 0.25;
}

.status__dot::after {
  width: 8px;
  height: 8px;
  background: var(--brand-primary);
}

/* ---------- Buttons ---------- */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 32px;
  padding-inline: 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button__icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.button--solid {
  background: var(--grey-01);
  color: var(--brand-dark);
}

.button--solid:hover,
.button--solid:focus-visible {
  background: var(--white);
}

.button--outline {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.button--outline:hover,
.button--outline:focus-visible {
  background: rgba(31, 162, 132, 0.14);
}

.button:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

/* ---------- Portrait ---------- */

.portrait {
  position: relative;
  width: 100%;
}

.portrait__img {
  width: 100%;
  height: auto;
  aspect-ratio: 513 / 560;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px;
}

/* ---------- Skill badges ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 12px;
  border: 1px solid rgba(31, 162, 132, 0.5);
  border-radius: 6px;
  background: rgba(31, 162, 132, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 16px;
  white-space: nowrap;
}

.badge__icon {
  flex: none;
}

.badge__tag {
  flex: none;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border: 0.5px solid var(--white);
  color: var(--white);
  font-size: 6.75px;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Stacked layout ---------- */

@media (max-width: 1000px) {
  .hero {
    align-items: flex-start;
    min-height: 0;
    padding-bottom: 200px;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.5rem, 4vw, 2rem);
    max-width: 520px;
  }

  .hero__col {
    display: contents;
  }

  .hero__intro { order: 1; }
  .portrait { order: 2; }
  .badges { order: 3; }
  .hero__bio { order: 4; }
  .hero__actions { order: 5; padding-top: 0; }

  .portrait__img {
    aspect-ratio: 1;
  }

  .hero__heading {
    flex-wrap: nowrap;
  }

  /* On mobile the pill collapses to just the indicator, as designed. */
  .status {
    font-size: 0;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: 200px;
  }

  .hero__actions {
    gap: 0.75rem;
  }
}

/* ---------- Load-in ---------- */

/*
 * Everything animates from a hidden state, so the whole block is gated behind
 * `no-preference` — with reduced motion the elements simply render in place.
 */
@media (prefers-reduced-motion: no-preference) {
  :root {
    /* Underdamped spring: settles just past 1 and eases back. */
    --spring: linear(
      0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%,
      0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%,
      1.006 79%, 1
    );
    --spring-soft: cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
  }

  @keyframes hero-settle {
    from {
      opacity: 0;
      transform: translateY(36px) scale(0.94);
    }
  }

  @keyframes hero-pop {
    from {
      opacity: 0;
      transform: translateY(8px) scale(0.82);
    }
  }

  @keyframes hero-ambient {
    from {
      opacity: 0;
      transform: scale(1.12);
    }
  }

  .hero__intro,
  .hero__bio,
  .hero__actions,
  .portrait,
  .badge {
    animation: hero-rise 0.9s var(--spring) backwards;
  }

  .hero__glow,
  .hero__grid {
    animation: hero-ambient 1.6s var(--spring-soft) backwards;
  }

  .hero__grid {
    animation-delay: 0.1s;
  }

  .portrait {
    animation-name: hero-settle;
    animation-duration: 1.15s;
    animation-delay: 0.14s;
  }

  .hero__intro { animation-delay: 0.06s; }
  .hero__bio { animation-delay: 0.22s; }
  .hero__actions { animation-delay: 0.32s; }

  /* Badges flutter in one after another once the portrait has landed. */
  .badge {
    animation-name: hero-pop;
    animation-duration: 0.62s;
    transform-origin: center left;
  }

  .badge:nth-child(1) { animation-delay: 0.42s; }
  .badge:nth-child(2) { animation-delay: 0.47s; }
  .badge:nth-child(3) { animation-delay: 0.52s; }
  .badge:nth-child(4) { animation-delay: 0.57s; }
  .badge:nth-child(5) { animation-delay: 0.62s; }
  .badge:nth-child(6) { animation-delay: 0.67s; }
  .badge:nth-child(7) { animation-delay: 0.72s; }
  .badge:nth-child(8) { animation-delay: 0.77s; }
  .badge:nth-child(9) { animation-delay: 0.82s; }
  .badge:nth-child(10) { animation-delay: 0.87s; }

  /* Buttons pick up the same spring on hover. */
  .button {
    transition: background-color 0.18s ease, border-color 0.18s ease,
      color 0.18s ease, transform 0.5s var(--spring);
  }

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

  .button:active {
    transform: translateY(0);
    transition-duration: 0.08s;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
