/* About page. Sizes in Figma pixels (N * var(--u)), see style.css. */

.about {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.about-title {
  font-family: var(--hand);
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}
.about-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-intro { line-height: 1.25; letter-spacing: -0.004em; }
.about-intro sup { font-size: 0.645em; line-height: 0; vertical-align: 0.6em; }
.about-body { line-height: 1.45; letter-spacing: -0.004em; }
.lets-talk { display: flex; flex-direction: column; align-items: flex-start; }
.lets-talk-line { line-height: 1.45; }
.about .social { gap: calc(10 * var(--u)); }

.decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.portrait, .hand, .im-roy { position: absolute; }
.portrait .placeholder, .hand .placeholder { background: rgba(30, 30, 30, 0.08); }
.portrait img, .hand img { display: block; width: 100%; height: 100%; object-fit: cover; }
.im-roy {
  font-family: var(--hand);
  color: #f5f5f5;
  line-height: 1.25;
  white-space: nowrap;
}

/* ---------------- DESKTOP (2160) ---------------- */
@container (min-width: 1720px) {
  .page-about .page {
    min-height: calc(1369 * var(--u));
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 2160 1369' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(-13.3 82.3 -129.85 -20.985 847 581.5)'><stop stop-color='rgba(242,245,62,1)' offset='0'/><stop stop-color='rgba(202,204,83,1)' offset='0.51921'/><stop stop-color='rgba(210,212,122,1)' offset='0.61176'/><stop stop-color='rgba(219,220,160,1)' offset='0.70431'/><stop stop-color='rgba(237,237,237,1)' offset='0.88941'/><stop stop-color='rgba(245,245,245,1)' offset='1'/></radialGradient></defs></svg>");
  }
  .about { padding: calc(40 * var(--u)) 0 0 calc(140 * var(--u)); gap: calc(40 * var(--u)); }
  .about-title { font-size: calc(180 * var(--u)); padding: calc(90 * var(--u)) 0 calc(20 * var(--u)); }
  .about-text { width: calc(1001 * var(--u)); padding-bottom: calc(30 * var(--u)); }
  .about-intro { font-size: calc(30 * var(--u)); }
  .about-body { font-size: calc(22 * var(--u)); margin-top: calc(26 * var(--u)); }
  .lets-talk { margin-top: calc(60 * var(--u)); gap: calc(20 * var(--u)); }
  .lets-talk-line { font-size: calc(25 * var(--u)); }
  .about .social a { font-size: calc(25 * var(--u)); }

  .portrait { left: calc(1314 * var(--u)); top: calc(565 * var(--u)); width: calc(515 * var(--u)); height: calc(644 * var(--u)); }
  .portrait img { object-fit: contain; }
  .hand-left  { left: calc(533 * var(--u));  top: calc(1038 * var(--u)); width: calc(871 * var(--u)); height: calc(853 * var(--u)); }
  .hand-right { left: calc(1734 * var(--u)); top: calc(988 * var(--u));  width: calc(871 * var(--u)); height: calc(853 * var(--u)); transform: scaleX(-1); }
}

/* ---------------- LAPTOP (1280) ---------------- */
@container (min-width: 1100px) and (max-width: 1719.98px) {
  .page-about .page {
    min-height: calc(1041 * var(--u));
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1280 1041' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(-7.8815 62.582 -76.95 -15.957 501.93 442.18)'><stop stop-color='rgba(242,245,62,1)' offset='0'/><stop stop-color='rgba(202,204,83,1)' offset='0.51921'/><stop stop-color='rgba(210,212,122,1)' offset='0.61176'/><stop stop-color='rgba(219,220,160,1)' offset='0.70431'/><stop stop-color='rgba(237,237,237,1)' offset='0.88941'/><stop stop-color='rgba(245,245,245,1)' offset='1'/></radialGradient></defs></svg>");
  }
  .about { padding: 0 calc(80 * var(--u)); gap: calc(20 * var(--u)); }
  .about-title { font-size: calc(150 * var(--u)); padding: calc(60 * var(--u)) 0 calc(20 * var(--u)); }
  .about-text { width: calc(584 * var(--u)); padding-bottom: calc(30 * var(--u)); }
  .about-intro { font-size: calc(24 * var(--u)); }
  .about-body { font-size: calc(18 * var(--u)); margin-top: calc(26 * var(--u)); }
  .lets-talk { margin-top: calc(35 * var(--u)); gap: calc(20 * var(--u)); }
  .lets-talk-line { font-size: calc(20 * var(--u)); }
  .about .social a { font-size: calc(20 * var(--u)); }

  .portrait { left: calc(772 * var(--u)); top: calc(379 * var(--u)); width: calc(322 * var(--u)); height: calc(459 * var(--u)); }
  .hand-left  { left: calc(423.4 * var(--u)); top: calc(689.7 * var(--u)); width: calc(543.4 * var(--u)); height: calc(532.1 * var(--u)); transform: rotate(-31.8deg); }
  .hand-right { left: calc(899.3 * var(--u)); top: calc(689.7 * var(--u)); width: calc(543.4 * var(--u)); height: calc(532.1 * var(--u)); transform: rotate(-148.2deg) scaleY(-1); }
}

/* ---------------- TABLET (800) ---------------- */
@container (min-width: 600px) and (max-width: 1099.98px) {
  .page-about .page {
    min-height: calc(1466 * var(--u));
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 800 1466' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(39.85 67.055 -44.713 36.5 495 654.2)'><stop stop-color='rgba(242,245,62,1)' offset='0'/><stop stop-color='rgba(202,204,83,1)' offset='0.51921'/><stop stop-color='rgba(210,212,122,1)' offset='0.61176'/><stop stop-color='rgba(219,220,160,1)' offset='0.70431'/><stop stop-color='rgba(237,237,237,1)' offset='0.88941'/><stop stop-color='rgba(245,245,245,1)' offset='1'/></radialGradient></defs></svg>");
  }
  .about { align-items: center; padding: 0 calc(64 * var(--u)); gap: calc(40 * var(--u)); text-align: center; }
  .about-title { font-size: calc(140 * var(--u)); padding: calc(60 * var(--u)) 0 calc(20 * var(--u)); }
  .about-text { width: calc(624 * var(--u)); align-items: center; padding-bottom: calc(60 * var(--u)); }
  .about-intro { font-size: calc(30 * var(--u)); line-height: 1.45; }
  .about-body { font-size: calc(20 * var(--u)); margin-top: calc(26 * var(--u)); }
  .lets-talk { align-items: center; margin-top: calc(25 * var(--u)); gap: calc(20 * var(--u)); }
  .lets-talk-line { font-size: calc(20 * var(--u)); }
  .about .social { align-items: center; gap: calc(8 * var(--u)); }
  .about .social a { font-size: calc(25 * var(--u)); }

  .portrait { left: calc(253 * var(--u)); top: calc(953 * var(--u)); width: calc(297.3 * var(--u)); height: calc(423.7 * var(--u)); }
  .hand-left  { left: calc(-198 * var(--u));  top: calc(1203.7 * var(--u)); width: calc(502.2 * var(--u)); height: calc(491.7 * var(--u)); }
  .hand-right { left: calc(496.4 * var(--u)); top: calc(1203.7 * var(--u)); width: calc(502.2 * var(--u)); height: calc(491.7 * var(--u)); transform: scaleX(-1); }
}

/* ---------------- MOBILE (375) ---------------- */
@container (max-width: 599.98px) {
  .page-about .page {
    min-height: calc(1713 * var(--u));
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 375 1713' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><g transform='matrix(-28.054 107.9 -90.266 -33.536 404.5 678.39)'><rect height='77.01' width='140.31' fill='url(%23grad)' id='quad' shape-rendering='crispEdges'/><use href='%23quad' transform='scale(1 -1)'/><use href='%23quad' transform='scale(-1 1)'/><use href='%23quad' transform='scale(-1 -1)'/></g><defs><linearGradient id='grad' gradientUnits='userSpaceOnUse' x2='5' y2='5'><stop stop-color='rgba(242,245,62,1)' offset='0'/><stop stop-color='rgba(202,204,83,1)' offset='0.51921'/><stop stop-color='rgba(210,212,122,1)' offset='0.61176'/><stop stop-color='rgba(219,220,160,1)' offset='0.70431'/><stop stop-color='rgba(237,237,237,1)' offset='0.88941'/><stop stop-color='rgba(245,245,245,1)' offset='1'/></linearGradient></defs></svg>"), linear-gradient(180deg, #f5f5f5 0%, #f5f5f5 100%);
  }
  .about { align-items: center; padding-top: calc(30 * var(--u)); gap: calc(420 * var(--u)); text-align: center; }
  .about-title { font-size: calc(120 * var(--u)); padding: 0 calc(24 * var(--u)); }
  .about-text { width: calc(313 * var(--u)); align-items: center; padding: calc(20 * var(--u)) 0 calc(45 * var(--u)); }
  .about-intro { font-size: calc(30 * var(--u)); }
  .about-body { font-size: calc(18 * var(--u)); margin-top: calc(52 * var(--u)); }
  .lets-talk { align-items: center; margin-top: calc(50 * var(--u)); gap: calc(40 * var(--u)); }
  .lets-talk-line { font-size: calc(22 * var(--u)); }
  .about .social { align-items: center; }
  .about .social a { font-size: calc(25 * var(--u)); }

  .portrait { left: calc(65.5 * var(--u)); top: calc(315 * var(--u)); width: calc(244 * var(--u)); height: calc(307 * var(--u)); }
  .im-roy {
    left: 50%; top: calc(615 * var(--u));
    font-size: calc(60 * var(--u)); letter-spacing: -0.005em;
    transform: translate(-50%, -50%);
  }
  .hand-left  { left: calc(-222.6 * var(--u)); top: calc(1383.6 * var(--u)); width: calc(438.9 * var(--u)); height: calc(429.7 * var(--u)); transform: rotate(90deg); }
  .hand-right { left: calc(159.5 * var(--u));  top: calc(1383.6 * var(--u)); width: calc(438.9 * var(--u)); height: calc(429.7 * var(--u)); transform: rotate(90deg) scaleY(-1); }
}

/* Intro: the word under the mouse turns italic */
.about-intro .w:hover { font-style: italic; }

/* "let's talk!" line switches between upright and italic every second */
.lets-talk-line { animation: talk-italic 1s step-end infinite; }
@keyframes talk-italic { 0% { font-style: normal; } 50% { font-style: italic; } }
@media (prefers-reduced-motion: reduce) { .lets-talk-line { animation: none; } }

/* a bit more air above "let's talk!" */
.lets-talk { margin-top: calc(var(--lt-gap, 35) * 1.8 * var(--u)) !important; }
@container (min-width: 1720px) { .lets-talk { --lt-gap: 60; } }
@container (min-width: 1100px) and (max-width: 1719.98px) { .lets-talk { --lt-gap: 60; } }
@container (min-width: 600px) and (max-width: 1099.98px) { .lets-talk { --lt-gap: 25; } }
@container (max-width: 599.98px) { .lets-talk { --lt-gap: 50; } }
