/* --------------------------------- */
/* ----- Basic Setup -----*/
/* --------------------------------- */

@font-face {
  font-family: "Mona Sans";
  src: url("assets/fonts/Mona-Sans.woff2") format("woff2 supports variations"),
    url("assets/fonts/Mona-Sans.woff2") format("woff2-variations");
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

:root {
  --h1: 3.5rem;
  --h2: 3rem;
  --h3: 2.145rem;
  --h4: 1.5rem;
  --text-large: 1.6rem;
  --text-medium: 1.275rem;
  --text-small: 1.125rem;

  --gradient-brand: radial-gradient(
      at 60% 31%,
      rgb(255, 131, 139) 0px,
      transparent 50%
    ),
    radial-gradient(at 48% 98%, rgba(0, 255, 166, 0.707) 0px, transparent 50%),
    radial-gradient(at 84% 67%, rgb(255, 129, 125) 0px, transparent 50%),
    radial-gradient(at 16% 47%, rgb(255, 90, 112) 0px, transparent 50%),
    radial-gradient(at 73% 11%, rgb(115, 255, 225) 0px, transparent 50%),
    radial-gradient(at 49% 37%, rgba(255, 249, 89, 0.695) 0px, transparent 50%),
    radial-gradient(at 70% 21%, rgba(58, 255, 186, 0.715) 0px, transparent 50%);
  --easing: cubic-bezier(0.86, 0, 0.07, 1);

  --site-max-width: 1280px;
  --gutter-nano: 0.5rem;
  --gutter-micro: 1rem;
  --gutter-x-small: 1.5rem;
  --gutter-small: 2rem;
  --gutter-medium: 2.5rem;
  --gutter-large: 3rem;
  --gutter-x-large: 6rem;
  --gutter-huge: 12rem;

  --scroll-padding: 4.375rem;
  --radius: 85px;
}

body.dark {
  --bg-color-primary: #0c0a0a;
  --bg-color-secondary: #161211;
  --important: #fff;
  --sub: #c3c3c3;
  --body: #989898;
  --border: #c0c0c015;
  --border-dark: #c0c0c02f;
  --gradient-border: linear-gradient(to left bottom, #777, #0e0d0d);
  --shadow: 0 1rem 1rem #00000040;
}

body.light {
  --bg-color-primary: #fbfbfb;
  --bg-color-secondary: #ffffff;
  --important: #000;
  --sub: #111;
  --body: #585b63;
  --border: #62626234;
  --border-dark: #5e5e5e1f;
  --gradient-border: linear-gradient(to left bottom, #000000c6, #0e0d0d00);
  --shadow: 0 1rem 1rem rgba(0, 0, 0, 0.25);
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-family: "Mona Sans", sans-serif;
  box-sizing: border-box;
  scroll-padding-top: var(--scroll-padding);
}

@media (max-width: 1200px) {
  html {
    font-size: 90%;
  }
}

@media (max-width: 645px) {
  html {
    font-size: 80%;
  }
}

body {
  font-size: var(--text-medium);
  color: var(--body);
  background-color: var(--bg-color-primary);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Improve media defaults */

picture,
svg,
img {
  display: block;
  max-inline-size: 100%;
  object-fit: contain;
}

/* --------------------------------- */
/* ----- Typography -----*/
/* --------------------------------- */

input,
button {
  font: inherit;
}

p,
h1,
h2,
h3,
.h4 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.h4 {
  font-stretch: 125%;
  line-height: 1.2;
  color: var(--important);
}

.h1 {
  font-size: var(--h1);
}

.h2 {
  font-size: var(--h2);
  text-align: center;
}

.h3 {
  font-size: var(--h3);
}

.h4 {
  font-size: var(--h4);
}

@media (max-width: 845px) {
  :root {
    --h1: 2.845rem;
    --h2: 2.45rem;
    --h3: 1.85rem;
  }
}

@media (max-width: 700px) {
  :root {
    --h1: 2.545rem;
  }
}

@media (max-width: 545px) {
  :root {
    --h1: 2.4rem;
    --text-large: 1.5rem;
  }
}

@media (max-width: 485px) {
  :root {
    --h1: 2.145rem;
    --h2: 1.875rem;
    --h3: 1.6rem;
    --text-large: 1.345rem;
  }
}

/* --------------------------------- */
/* ----- Utilities -----*/
/* --------------------------------- */

/* Center and constrain the width of page sections */

.container {
  max-inline-size: var(--site-max-width);
  margin-inline: auto;
}

@media (max-width: 1375px) {
  :root {
    --site-max-width: 1160px;
  }
}

@media (max-width: 1275px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

@media (max-width: 1200px) {
  .container {
    padding-inline: var(--gutter-medium);
  }
}

@media (max-width: 575px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

/* disable scroll when menu is opened */

.lock-screen {
  overflow-y: hidden;
}

/* hides visually and removes from accessibility tree  */

.hidden {
  visibility: hidden;
  transform: translateX(-100%);
}

.transform {
  transform: translateY(6rem);
  opacity: 0;
}

.shown {
  transition: 0.1s;
  color: lightgrey;
}

/* --------------------------------- */
/* ----- Components -----*/
/* --------------------------------- */

.btn {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 18px 60px;
  border-radius: var(--gutter-nano);
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

@media (max-width: 700px) {
  .btn {
    padding: 16px 48px;
  }
}

@media (max-width: 485px) {
  .btn {
    font-size: 1.2rem;
    padding: 14px 38px;
  }
}

.btn-cta {
  color: var(--bg-color-primary);
  background-color: var(--important);
}

body.dark .btn-cta:hover,
body.dark .btn-cta:focus {
  box-shadow: #ffffff40 0 0 0 var(--gutter-nano);
}

body.light .btn-cta:hover,
body.light .btn-cta:focus {
  box-shadow: #07070733 0 0 0 var(--gutter-nano);
}

.btn-secondary {
  border: 1px solid var(--border-dark);
  color: var(--important);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--important);
}

.link {
  display: inline-block;
  font-weight: 600;
  font-size: var(--text-small);
  padding: var(--gutter-nano) 0;
  text-decoration: none;
  color: var(--important);
  position: relative;
}

.link::after,
.link::before {
  content: "";
  width: 100%;
  height: 1px;
  margin-block-start: var(--gutter-nano);
  position: absolute;
  bottom: -1px;
  left: 0;
  transition: 300ms;
}

body.dark .link::before {
  background-color: #d3d3d357;
}

body.dark .link::after {
  background-color: white;
}

body.light .link::before {
  background-color: lightgray;
}

body.light .link::after {
  background-color: black;
}

.link::after {
  background-color: white;
  transform-origin: left;
  transform: scaleX(0);
}

.link:hover::after,
.link:focus::after {
  transform: scaleX(1);
}

/* --------------------------------- */
/* ----- Layout -----*/
/* --------------------------------- */

section:not(:first-child) {
  padding-block-start: var(--gutter-huge);
}

section:first-child {
  padding-block-start: 7rem;
}

@media (max-width: 885px) {
  :root {
    --gutter-huge: 8rem;
    --gutter-x-large: 4rem;
  }
}

main {
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background-color: var(--bg-color-primary);
  transform: translateY(calc(-1 * var(--radius)));
}

@media (max-width: 1185px) {
  :root {
    --radius: 45px;
  }
}

/* --------------------------------- */
/* ----- Menu Button -----*/
/* --------------------------------- */

.menu-btn-container {
  position: fixed;
  width: 100%;
  top: var(--gutter-x-small);
  left: 0;
  z-index: 4;
}

.menu-btn {
  display: block;
  margin-inline-start: auto;
  border: 1px solid var(--border-dark);
  inline-size: 132px;
  padding-block: var(--gutter-nano);
  border-radius: var(--gutter-large);
  text-decoration: none;
  background-color: var(--bg-color-secondary);
  color: var(--important);
  cursor: pointer;
}

.menu-btn,
.nav-items a {
  font-stretch: 125%;
  font-weight: 900;
}

/* --------------------------------- */
/* ----- Navigation -----*/
/* --------------------------------- */

.nav {
  min-block-size: 100vh;
  position: fixed;
  width: 100%;
  background-color: #ff5e99;
  background-image: var(--gradient-brand);
  transition: 450ms var(--easing);
  z-index: 3;
}

.nav-items {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%) translateX(-15%);
  list-style-type: none;
}

.nav-item:not(:last-child) {
  margin-block-end: var(--gutter-x-small);
}

.nav-item a {
  display: inline-block;
  font-size: var(--h2);
  text-decoration: none;
  color: #fff;
}

.nav-item a::after {
  content: "";
  display: block;
  block-size: var(--gutter-nano);
  width: 100%;
  transform: scale(0);
  transform-origin: left;
  background-color: white;
  transition: transform 250ms var(--easing);
}

.nav-item a:hover::after,
.nav-item a:focus::after {
  transform: scale(1);
}

/* --------------------------------- */
/* ----- Header -----*/
/* --------------------------------- */

.header {
  min-block-size: calc(100vh + var(--radius));
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body.dark .header {
  background-image: linear-gradient(#0000008b, #000000e6),
    url("assets/images/hero-bg.webp");
}

body.light .header {
  background-image: linear-gradient(#ffffffa2, #ffffffe6),
    url("assets/images/hero-bg-light.webp");
}

.header-textbox {
  position: relative;
}

.h1 span {
  display: block;
}

.header-text {
  font-size: var(--text-large);
  font-weight: 400;
  max-inline-size: 745px;
  margin-block-start: var(--gutter-micro);
  margin-block-end: var(--gutter-medium);
}

@media (max-width: 1200px) {
  .header-text {
    max-inline-size: 685px;
  }
}

@media (max-width: 845px) {
  .header-text {
    max-inline-size: 585px;
  }
}

.header-btns {
  display: inline-flex;
  gap: var(--gutter-x-small);
}

@media (max-width: 400px) {
  .header-btns {
    flex-direction: column;
    width: 80%;
    margin-inline: auto;
  }
}

/* --------------------------------- */
/* ----- Work -----*/
/* --------------------------------- */

.work-boxes {
  padding-block-start: var(--gutter-x-large);
}

.work-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1045px) {
  .work-boxes {
    max-inline-size: fit-content;
    margin-inline: auto;
  }

  .work-box {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .work-img {
    margin-block-end: var(--gutter-medium);
  }
}

.work-box:not(:last-child) {
  margin-block-end: var(--gutter-huge);
}

@media (max-width: 1285px) {
  .work-box:not(:last-child) {
    margin-block-end: 8rem;
  }
}

.work-img,
.work-textbox {
  flex-basis: 49%;
}

.work-img {
  max-inline-size: 785px;
  transition: 0.6s all;
}

body.light .work-img {
  box-shadow: var(--shadow);
}

.work-textbox {
  max-inline-size: 445px;
}

@media (max-width: 885px) {
  .work h2 {
    margin-block-start: 45px;
  }
}

@media (max-width: 485px) {
  .work h2 {
    margin-block-start: 0;
  }
}

.work-text {
  margin-block: var(--gutter-micro);
}

.work-technologies {
  list-style-position: inside;
  list-style-type: disc;
  margin-block-end: var(--gutter-x-small);
}

.work-links {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-x-small);
}

.work-links img {
  block-size: 28px;
  inline-size: 28px;
}

body.dark .work-links img {
  filter: invert(1);
}

/* Github icon */

.work-links > a:last-child {
  transition: 0.3s transform ease-in;
}

.work-links > a:last-child:hover,
.work-links > a:last-child:focus {
  transform: scale(1.1);
}

.work-text,
.contact-text,
.work-technologies {
  font-weight: 300;
}

.work-textbox h3,
.work-label,
.work-text,
.work-technologies,
.work-links {
  --delay: 0.2s;
  animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-play-state: paused;
}

.work-text {
  animation-delay: var(--delay);
}

.work-technologies {
  animation-delay: calc(var(--delay) * 1.5);
}

.work-links {
  animation-delay: calc(var(--delay) * 2);
}

@keyframes slide-up {
  from {
    transform: translateY(45px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* --------------------------------- */
/* ----- Skills -----*/
/* --------------------------------- */

.skills-imgs {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: var(--gutter-x-large);
  padding-block-start: var(--gutter-x-large);
}

.skills-img {
  block-size: 135px;
  inline-size: 135px;
}

@media (max-width: 1100px) {
  .skills-img {
    block-size: 100px;
    inline-size: 100px;
  }
}

@media (max-width: 810px) {
  .skills-img {
    block-size: 85px;
    inline-size: 85px;
  }
}

@media (max-width: 675px) {
  .skills-imgs {
    gap: var(--gutter-large);
  }
  .skills-img {
    block-size: 70px;
    inline-size: 70px;
  }
}

@media (max-width: 340px) {
  .skills-img {
    block-size: 55px;
    inline-size: 55px;
  }
}

/* --------------------------------- */
/* ----- Contact -----*/
/* --------------------------------- */

.contact-content {
  display: grid;
  grid-template-columns: minmax(245px, 35%) 1fr;
  margin-block: var(--gutter-x-large);
  border: 1px solid var(--border);
  border-radius: var(--gutter-nano);
}

@media (max-width: 1032px) {
  .contact-content {
    display: flex;
    flex-direction: column-reverse;
    max-inline-size: 845px;
    margin-inline: auto;
  }
}

.contact-textbox {
  padding: var(--gutter-large) var(--gutter-small);
}

.hire-alert {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-nano);
  font-size: initial;
  padding: var(--gutter-nano) var(--gutter-micro);
  border-radius: var(--gutter-small);
  position: relative;
  z-index: 1;
  margin-block-end: var(--gutter-small);
  color: var(--important);
}

.hire-alert::before,
.hire-alert::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hire-alert::after {
  background-image: var(--gradient-border);
  z-index: -2;
}

.hire-alert::before {
  background-color: var(--bg-color-primary);
  inset: 1px;
  z-index: -1;
}

.indicator {
  display: inline-block;
  block-size: var(--gutter-nano);
  inline-size: var(--gutter-nano);
  border-radius: 50%;
  background-color: red;
  animation: blink 550ms alternate infinite var(--easing);
}

@keyframes blink {
  100% {
    opacity: 0;
  }
}

.contact-text {
  margin-block-end: var(--gutter-small);
}

/* --------------------------------- */
/* ----- Footer -----*/
/* --------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--gutter-x-large);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 875px) {
  .footer-content {
    flex-direction: column-reverse;
    gap: var(--gutter-small);
  }
  .footer-text {
    text-align: center;
  }
}

.footer-text {
  font-size: var(--text-small);
}

.footer-text a {
  color: var(--sub);
}

.footer-links {
  display: flex;
  gap: var(--gutter-small);
  list-style-type: none;
}

@media (max-width: 1040px) {
  .footer-links {
    gap: var(--gutter-micro);
  }
}

.footer-link img {
  block-size: 32px;
  inline-size: 32px;
}

.footer-link a {
  opacity: 0.875;
  transition: 225ms ease-in opacity;
}

.footer-link a:hover {
  opacity: 1;
}

body.dark .footer-link img {
  filter: invert(1);
}

.theme-switch {
  /* Track */

  --track-size: calc(var(--thumb-size) * 2);
  --track-padding: 0.225rem;
  --track-inactive: hsl(80 0% 80%);
  --track-active: #d7aefb;

  --track-color-inactive: var(--track-inactive);
  --track-color-active: var(--track-active);

  /* Thumb */

  --thumb-position: 0%;
  --thumb-size: 1.2rem;
  --thumb: hsl(0 0% 100%);
  --thumb-highlight: hsla(0, 0%, 0%, 0.056);

  --thumb-color: var(--thumb);
  --thumb-color-highlight: var(--thumb-highlight);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 2ch;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch > span,
.theme-switch > input {
  cursor: pointer;
}

.theme-switch span {
  font-size: 1rem;
  color: var(--sub);
}

.theme-switch > input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: content-box;
  inline-size: var(--track-size);
  block-size: var(--thumb-size);
  padding: var(--track-padding);
  background-color: var(--track-color-inactive);
  border-radius: var(--track-size);
}

.theme-switch > input::after {
  display: block;
  content: "";
  inline-size: var(--thumb-size);
  block-size: var(--thumb-size);
  background-color: var(--thumb-color);
  border-radius: 50%;
  transform: translateX(var(--thumb-position));
  transition: 500ms all cubic-bezier(0.45, 0.05, 0.22, 1.3);
}

input:checked {
  --thumb-position: 100%;
  background-color: var(--track-active);
}

/* --------------------------------- */
/* ----- Shared card -----*/
/* --------------------------------- */

.card {
  border: 1px solid var(--border);
  padding: var(--gutter-small);
  border-radius: var(--gutter-nano);
  background-color: var(--bg-color-secondary);
  list-style-type: none;
}

.fact-label {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-block-end: var(--gutter-nano);
}

/* --------------------------------- */
/* ----- About -----*/
/* --------------------------------- */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter-large);
  align-items: start;
  margin-block-start: var(--gutter-x-large);
}

.about-text p {
  font-weight: 300;
  font-size: var(--text-medium);
}

.about-text p:not(:last-child) {
  margin-block-end: var(--gutter-small);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter-micro);
  list-style-type: none;
}

.facts .card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--gutter-x-small);
  font-size: var(--text-small);
}

.facts strong {
  color: var(--important);
  font-size: var(--text-medium);
}

@media (max-width: 985px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 485px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------- */
/* ----- Work extras -----*/
/* --------------------------------- */

.work-label {
  font-size: var(--text-small);
  margin-block-end: var(--gutter-nano);
  animation-delay: 0s;
}

.work-img img {
  border-radius: var(--gutter-nano);
}

/* --------------------------------- */
/* ----- Skills -----*/
/* --------------------------------- */

.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gutter-micro);
  margin-block-start: var(--gutter-x-large);
}

.skill-groups h3 {
  margin-block-end: var(--gutter-x-small);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter-nano);
  list-style-type: none;
}

.chips li {
  font-size: var(--text-small);
  color: var(--sub);
  border: 1px solid var(--border-dark);
  border-radius: var(--gutter-large);
  padding: 0.35rem var(--gutter-micro);
}

@media (max-width: 700px) {
  .skill-groups {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------- */
/* ----- Certificates -----*/
/* --------------------------------- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter-micro);
  margin-block-start: var(--gutter-x-large);
}

.cert-grid h3 {
  margin-block-end: var(--gutter-nano);
}

.cert-grid p {
  font-size: var(--text-small);
}

@media (max-width: 700px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------- */
/* ----- Community service -----*/
/* --------------------------------- */

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-block-start: var(--gutter-x-large);
  list-style-type: none;
  background-image: linear-gradient(rgba(88, 88, 88, 0.297), rgba(214, 214, 214, 0.082));
}

.activity {
  padding: var(--gutter-small);
  background-color: var(--bg-color-primary);
}

.activity h3 {
  margin-block-end: var(--gutter-nano);
}

.activity p {
  font-size: var(--text-small);
}

@media (max-width: 700px) {
  .activity-list {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------- */
/* ----- Contact panel -----*/
/* --------------------------------- */

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gutter-micro);
  padding: var(--gutter-large) var(--gutter-small);
  background-color: var(--bg-color-secondary);
  border-top-right-radius: var(--gutter-nano);
  border-bottom-right-radius: var(--gutter-nano);
}

.contact-row {
  display: block;
  padding: var(--gutter-x-small);
  border: 1px solid var(--border-dark);
  border-radius: var(--gutter-nano);
  text-decoration: none;
  color: var(--body);
  transition: 0.3s border-color ease-in-out;
  overflow-wrap: anywhere;
}

.contact-row strong {
  color: var(--important);
  font-size: var(--text-medium);
}

.contact-row:hover,
.contact-row:focus {
  border-color: var(--important);
}

@media (max-height: 700px) {
  .nav-item:not(:last-child) {
    margin-block-end: var(--gutter-micro);
  }
  .nav-item a {
    font-size: 2rem;
  }
}

/* --------------------------------- */
/* ----- Hero (photo + motion) -----*/
/* --------------------------------- */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

body.dark {
  --dot: #ffffff2e;
  --photo-bg: #130f10;
  --photo-glow: 0.5;
  --chip-bg: rgba(22, 18, 17, 0.72);
  --chip-shadow: 0 0.75rem 1.5rem #00000066;
}

body.light {
  --dot: #00000026;
  --photo-bg: #ffffff;
  --photo-glow: 0.85;
  --chip-bg: rgba(255, 255, 255, 0.82);
  --chip-shadow: 0 0.75rem 1.5rem #00000030;
}

.header .hero {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: var(--gutter-large);
}

/* background decoration */

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 45%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse at 75% 45%, #000 0%, transparent 62%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 380px;
  height: 380px;
  top: 8%;
  right: 6%;
  background: #ff5a70;
}

.orb-2 {
  width: 320px;
  height: 320px;
  bottom: 18%;
  right: 24%;
  background: #3affba;
  animation-delay: -7s;
}

body.light .orb {
  opacity: 0.22;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-50px, 40px) scale(1.15);
  }
}

/* text side */

.hero .h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  line-height: 1.12;
}

.hero .h1 .greet {
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sub);
}

.hero .h1 .role {
  font-size: 0.56em;
  font-weight: 600;
  margin-block-start: 0.3em;
  color: var(--sub);
}

.hero .h1 .grad-text {
  display: inline;
  font-style: normal;
  background: linear-gradient(100deg, #ff7a88 0%, #ffd95a 45%, #3affba 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}

@keyframes shimmer {
  to {
    background-position: 100% 0;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-micro);
  font-size: var(--text-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sub);
  margin-block-end: var(--gutter-x-small);
}

.eyebrow-line {
  inline-size: 2.5rem;
  block-size: 2px;
  background: linear-gradient(90deg, #ff5a70, #3affba);
  border-radius: 2px;
}

.hero-typed {
  font-size: var(--text-large);
  color: var(--sub);
  margin-block-start: var(--gutter-micro);
  min-block-size: 1.4em;
}

.hero-typed strong {
  color: var(--important);
  font-weight: 700;
}

.caret {
  display: inline-block;
  inline-size: 2px;
  block-size: 1.05em;
  margin-inline-start: 3px;
  vertical-align: text-bottom;
  background: var(--important);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.hero .header-text {
  margin-block-start: var(--gutter-nano);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter-nano);
  list-style-type: none;
  margin-block-start: var(--gutter-small);
}

.hero-meta li {
  font-size: var(--text-small);
  color: var(--sub);
  border: 1px solid var(--border-dark);
  border-radius: var(--gutter-large);
  padding: 0.3rem var(--gutter-micro);
}

/* entrance animation */

.reveal {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms + 150ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* photo side */

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.photo-stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  inline-size: clamp(240px, 26vw, 370px);
  aspect-ratio: 4 / 5;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out;
}

.glow {
  position: absolute;
  inline-size: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.55;
  animation: drift 10s ease-in-out infinite alternate;
}

.glow-a {
  top: -10%;
  left: -18%;
  background: #ff5a70;
}

.glow-b {
  bottom: -8%;
  right: -18%;
  background: #3affba;
  animation-delay: -4s;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  inline-size: 128%;
  aspect-ratio: 1;
  margin: 0;
  translate: -50% -50%;
  border: 1px dashed var(--border-dark);
  border-radius: 50%;
  animation: spin-ring 38s linear infinite;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 14%;
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background: #3affba;
  box-shadow: 0 0 14px 3px #3affba99;
}

@keyframes spin-ring {
  to {
    rotate: 360deg;
  }
}

.photo-frame {
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 999px 999px 28px 28px;
  background: conic-gradient(
    from var(--angle),
    #ff5a70,
    #ffd95a,
    #3affba,
    #73ffe1,
    #ff5a70
  );
  animation: spin-border 8s linear infinite, float 7s ease-in-out infinite;
  box-shadow: var(--shadow);
}

@keyframes spin-border {
  to {
    --angle: 360deg;
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

.photo-card {
  position: relative;
  inline-size: 100%;
  block-size: 100%;
  overflow: hidden;
  border-radius: 996px 996px 25px 25px;
  background: var(--photo-bg);
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: var(--photo-glow);
}

.photo-card img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center bottom;
  max-inline-size: none;
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--important);
  background: var(--chip-bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--gutter-large);
  padding: 0.45rem 0.95rem;
  box-shadow: var(--chip-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: bob 5s ease-in-out infinite;
}

.float-chip::before {
  content: "";
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5a70, #3affba);
}

.chip-a {
  top: 10%;
  left: -22%;
}

.chip-b {
  top: 44%;
  right: -16%;
  animation-delay: -1.7s;
}

.chip-c {
  bottom: 12%;
  left: -14%;
  animation-delay: -3.2s;
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

/* scroll hint */

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--radius) + 1.25rem);
  translate: -50% 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sub);
  animation: rise 1s ease 1.4s both;
}

.mouse {
  display: block;
  inline-size: 22px;
  block-size: 34px;
  border: 2px solid var(--sub);
  border-radius: 14px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  inline-size: 3px;
  block-size: 7px;
  margin-inline-start: -1.5px;
  border-radius: 2px;
  background: var(--important);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* responsive hero */

@media (max-width: 1100px) {
  .hero-grid {
    gap: var(--gutter-small);
  }
  .chip-a {
    left: -12%;
  }
  .chip-c {
    left: -8%;
  }
}

@media (max-width: 900px), (max-height: 820px) {
  .scroll-hint {
    display: none;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .hero-meta {
    display: none;
  }
  .hero .header-text {
    font-size: var(--text-medium);
  }
}

@media (max-width: 900px) {
  .header .hero {
    position: relative;
    top: auto;
    transform: none;
    padding-block: 6.5rem calc(var(--radius) + 4rem);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--gutter-large);
  }

  .hero-visual {
    order: -1;
  }

  .photo-stage {
    inline-size: clamp(190px, 48vw, 250px);
  }

  .chip-a {
    left: -26%;
  }
  .chip-b {
    right: -22%;
  }
  .chip-c {
    left: -18%;
  }

  .hero .header-text {
    margin-inline: auto;
  }

  .header-btns,
  .hero-meta {
    justify-content: center;
  }
}

@media (max-width: 485px) {
  .float-chip {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
  .chip-a {
    left: -20%;
  }
  .chip-b {
    right: -18%;
  }
  .chip-c {
    left: -14%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-visual,
  .scroll-hint,
  .orb,
  .glow,
  .orbit-ring,
  .photo-frame,
  .float-chip,
  .caret,
  .wheel,
  .grad-text {
    animation: none !important;
  }
  .photo-stage {
    transition: none;
    transform: none;
  }
}

body.light .hero .h1 .grad-text {
  background-image: linear-gradient(100deg, #e11d48 0%, #c026d3 50%, #0d9488 100%);
}

.section-note {
  max-inline-size: 640px;
  margin: var(--gutter-small) auto 0;
  text-align: center;
  font-size: var(--text-small);
}

.skill-groups {
  margin-block-start: var(--gutter-large);
}

.work-text p + p {
  margin-block-start: 0.6rem;
}

.work-text strong {
  color: var(--sub);
  font-weight: 600;
}
