:root {
  --background: #cdb99d;
  --text: #41271c;
  --card-radius: clamp(19px, 3vw, 28px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  background-color: var(--background);
  background-image:
    linear-gradient(rgba(205, 185, 157, 0.06), rgba(205, 185, 157, 0.06)),
    url("assets/background.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
}

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

.page-container {
  position: relative;
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 68px) clamp(20px, 5vw, 44px) clamp(56px, 8vw, 96px);
}

.main-content {
  position: relative;
  z-index: 5;
  width: min(100%, 588px);
  margin: 0 auto;
}

.profile {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-inline: auto;
  gap: 14px;
}

.profile-photo {
  width: clamp(54px, 8.6vw, 63px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 7px 18px rgba(79, 42, 21, 0.14);
}

.profile-copy {
  display: grid;
  gap: 4px;
  line-height: 1.15;
}

.profile-copy strong {
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 700;
}

.profile-copy span {
  color: rgba(65, 39, 28, 0.78);
  font-size: clamp(13px, 2vw, 15px);
}

h1 {
  margin: clamp(39px, 7vw, 62px) 0 0;
  text-align: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 8vw, 66px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro {
  margin: clamp(24px, 4vw, 33px) 0 0;
  text-align: center;
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.55;
}

.links {
  display: grid;
  gap: clamp(21px, 4vw, 31px);
  margin-top: clamp(38px, 6.5vw, 54px);
}

.card-motion,
.link-card {
  border-radius: var(--card-radius);
}

.card-motion {
  position: relative;
}

.link-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 588 / 280;
  overflow: hidden;
  color: #fffaf1;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 16px 34px rgba(55, 30, 18, 0.22);
  transform: translateZ(0);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 360ms ease;
}

.link-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(22, 13, 8, 0) 42%,
    rgba(22, 13, 8, 0.21) 63%,
    rgba(22, 13, 8, 0.76) 100%
  );
}

.card-content {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4.5vw, 34px);
  bottom: clamp(19px, 4vw, 30px);
  left: clamp(20px, 4.5vw, 34px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.card-title {
  max-width: 75%;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(27px, 5.2vw, 41px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.card-status {
  flex: 0 0 auto;
  padding-bottom: 2px;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 700;
  white-space: nowrap;
}

.card-mentoria .card-title {
  max-width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .link-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 21px 42px rgba(55, 30, 18, 0.29);
  }
}

.link-card:focus-visible {
  outline: 3px solid #fff8eb;
  outline-offset: 5px;
  box-shadow: 0 0 0 7px rgba(78, 43, 27, 0.52),
    0 21px 42px rgba(55, 30, 18, 0.3);
}

.decorative-element {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.flower-top {
  top: clamp(20px, 3vw, 42px);
  right: clamp(-40px, -1.5vw, -10px);
  width: clamp(148px, 29vw, 222px);
  animation: float-top 9.4s -1.8s ease-in-out infinite alternate;
}

.flower-side {
  top: clamp(410px, 55vw, 500px);
  left: clamp(-42px, -3vw, -18px);
  width: clamp(112px, 20vw, 160px);
  opacity: 0.9;
  animation: float-side 11.8s -4.1s ease-in-out infinite alternate;
}

.leaves {
  top: clamp(630px, 91vw, 735px);
  right: clamp(-30px, -2vw, -12px);
  width: clamp(102px, 18vw, 145px);
  opacity: 0.67;
  filter: blur(0.5px);
  animation: float-leaves 8.7s -2.7s ease-in-out infinite alternate;
}

.reveal {
  opacity: 0;
  animation: reveal-up 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-profile { animation-delay: 80ms; }
.reveal-title { animation-delay: 190ms; }
.reveal-intro { animation-delay: 300ms; }
.reveal-card-one { animation-delay: 420ms; }
.reveal-card-two { animation-delay: 540ms; }

.mentor-motion {
  animation:
    reveal-up 700ms 540ms cubic-bezier(0.22, 1, 0.36, 1) forwards,
    mentor-pulse 5s 1.8s ease-in-out infinite;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-top {
  from { transform: translate3d(-3px, -4px, 0) rotate(-1.2deg) scale(1); }
  to { transform: translate3d(7px, 8px, 0) rotate(1.5deg) scale(1.012); }
}

@keyframes float-side {
  from { transform: translate3d(-5px, 5px, 0) rotate(1.2deg) scale(0.995); }
  to { transform: translate3d(7px, -7px, 0) rotate(-1.5deg) scale(1.01); }
}

@keyframes float-leaves {
  from { transform: translate3d(4px, -6px, 0) rotate(-1deg) scale(1); }
  to { transform: translate3d(-7px, 7px, 0) rotate(1.8deg) scale(1.018); }
}

@keyframes mentor-pulse {
  0%,
  82%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(55, 30, 18, 0));
  }
  90% {
    transform: scale(1.012);
    filter: drop-shadow(0 7px 8px rgba(55, 30, 18, 0.12));
  }
}

@media (max-width: 600px) {
  .page-container {
    padding-top: 34px;
    padding-right: clamp(16px, 5.3vw, 23px);
    padding-left: clamp(16px, 5.3vw, 23px);
  }

  h1 {
    margin-top: 38px;
  }

  .links {
    margin-top: 36px;
  }

  .flower-top {
    top: 40px;
    right: -61px;
    width: clamp(132px, 40vw, 172px);
    opacity: 0.82;
  }

  .flower-side {
    top: clamp(382px, 110vw, 435px);
    left: -54px;
    width: clamp(103px, 31vw, 132px);
    opacity: 0.76;
  }

  .leaves {
    top: clamp(565px, 160vw, 660px);
    right: -45px;
    width: clamp(90px, 28vw, 118px);
    opacity: 0.5;
  }
}

@media (min-width: 769px) {
  .decorative-element {
    position: fixed;
  }

  .flower-top {
    top: clamp(30px, 6vh, 72px);
    right: -18px;
  }

  .flower-side {
    top: clamp(390px, 46vh, 520px);
    left: -24px;
  }

  .leaves {
    top: clamp(610px, 65vh, 730px);
    right: -26px;
  }
}

@media (max-width: 360px) {
  .card-content {
    right: 17px;
    bottom: 16px;
    left: 17px;
    gap: 10px;
  }

  .card-title {
    font-size: clamp(23px, 7.6vw, 27px);
  }

  .card-status {
    font-size: 11px;
  }
}

@media (min-width: 1000px) {
  .page-container {
    padding-top: 62px;
  }

  .flower-side {
    left: -22px;
  }

  .leaves {
    right: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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

  .link-card:hover {
    transform: none;
  }
}
