/* Home page (index.html)
   Mobile first: the base rules are for phones, media queries add the larger layouts.
   Breakpoints: 401px (larger phones), 701px (tablets), 761px (desktop stage), 861px (wide About me) */


/* Page and stage */

.page {
  position: relative;
  display: flex;
  height: 100vh;
  min-height: 38.75rem;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
}

.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.stage-haze {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 48% at 30% 82%, rgb(var(--haze-rgb) / 0.16) 0%, rgb(var(--haze-rgb) / 0.07) 45%, rgb(var(--haze-rgb) / 0) 75%);
  pointer-events: none;
}


/* Moving "MY PORTFOLIO" text */

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--marquee-top, 34%);
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
  pointer-events: none;
}

.marquee-row {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-big,
.marquee-small {
  display: inline-flex;
  font-family: var(--font-poster);
}

.marquee-big {
  font-size: 30cqw;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: rgb(var(--white-rgb) / 0.16);
  animation: marquee-left 38s linear infinite;
}

.marquee-small {
  font-size: 13cqw;
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--white-rgb) / 0.28);
  animation: marquee-right 52s linear infinite;
}

.marquee-big span {
  padding-right: 0.35em;
}

.marquee-small span {
  padding-right: 0.6em;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}


/* Character (its position on phones is set by js/home.js) */

.character {
  position: absolute;
  left: 50%;
  top: var(--character-top, 8rem);
  height: var(--character-height, max(11.875rem, calc(100% - 8rem - 18.75rem)));
  aspect-ratio: 902 / 1414;
  transform: translateX(-50%);
}

.character-shadow {
  position: absolute;
  left: 18%;
  right: -4%;
  bottom: -4%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 70% 50%, rgb(var(--shadow-rgb) / 0.55) 0%, rgb(var(--shadow-rgb) / 0) 70%);
  filter: blur(6px);
}

.character-contact {
  position: absolute;
  left: 70%;
  width: 34%;
  bottom: -1.6%;
  height: 3.2%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgb(var(--shadow-rgb) / 0.85) 0%, rgb(var(--shadow-rgb) / 0.4) 45%, rgb(var(--shadow-rgb) / 0) 72%);
}

.character-reflection {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 40%;
  overflow: hidden;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(180deg, var(--shadow) 0%, transparent 55%);
  mask-image: linear-gradient(180deg, var(--shadow) 0%, transparent 55%);
}

.character-reflection img {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleY(-1);
  filter: blur(1.5px);
}

.character-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}


/* Top bar: LIVE badge and menu */

.top-bar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(0.875rem, 2.4vw, 1.75rem) var(--edge);
}

.live-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  box-sizing: border-box;
  padding: 0 0.875rem;
  border-radius: 0.5rem;
  background: var(--red);
  color: var(--pure-white);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pure-white);
  animation: pulse 1.6s ease-in-out infinite;
}

.live-place {
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.9;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.main-nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  width: 100%;
  height: 2.375rem;
  font-size: 0.9375rem;
  box-sizing: border-box;
  border: 1px solid rgb(var(--white-rgb) / 0.18);
  border-radius: 999px;
  background: rgb(var(--glass-rgb) / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 0.625rem 1.875rem rgb(var(--shadow-rgb) / 0.4);
}

.main-nav a,
.main-nav button {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  color: var(--silver);
  font: 500 0.84375rem Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav button:hover {
  background-color: rgb(var(--white-rgb) / 0.08);
  color: var(--pure-white);
}

/* The open section, or Home when nothing is open */
.main-nav a[aria-current="page"],
.main-nav button[aria-expanded="true"] {
  background-color: rgb(var(--white-rgb) / 0.16);
  color: var(--pure-white);
  font-weight: 600;
}

/* Sliding highlight added by js/home.js */
.nav-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgb(var(--white-rgb) / 0.16);
  transition: transform 0.38s cubic-bezier(0.3, 0.9, 0.25, 1), width 0.38s cubic-bezier(0.3, 0.9, 0.25, 1);
  pointer-events: none;
}

.main-nav.has-indicator a,
.main-nav.has-indicator button {
  z-index: 1;
  background-color: transparent;
}

.main-nav.has-indicator a:hover,
.main-nav.has-indicator button:hover {
  background-color: rgb(var(--white-rgb) / 0.06);
}


/* Intro: name and buttons */

.intro {
  position: absolute;
  z-index: 3;
  left: var(--edge);
  right: 1rem;
  bottom: 5.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.intro-hi {
  display: none;
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.intro-name {
  margin: 0;
  color: var(--pure-white);
  text-shadow: 0 0 2rem rgb(var(--pure-white-rgb) / 0.22), 0 0 0.25rem rgb(var(--pure-white-rgb) / 0.12);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.125rem, 10vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.intro-subtitle {
  margin: 0;
  font-size: clamp(0.9375rem, 1.25vw, 1.125rem);
  line-height: 1.5;
  color: var(--pale);
  text-shadow: 0 0 1.125rem rgb(var(--pure-white-rgb) / 0.16);
}

.long-text {
  display: none;
}

.intro-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

/* Shared hover movement for the rounded buttons on this page */
.btn {
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn:active {
  transform: scale(0.96);
}

.btn-light {
  background-color: var(--white);
  color: var(--black);
  font-weight: 600;
}

.btn-outline {
  border: 1px solid var(--line-strong);
}

.btn-glass {
  border: 1px solid rgb(var(--white-rgb) / 0.4);
  background-color: rgb(var(--pure-white-rgb) / 0.06);
  box-shadow: 0 0 1.375rem rgb(var(--pure-white-rgb) / 0.1);
  font-weight: 600;
}

.btn-glass:hover {
  border-color: rgb(var(--white-rgb) / 0.8);
  background-color: rgb(var(--white-rgb) / 0.08);
}

/* View projects and LinkedIn */
.btn-hero {
  justify-content: normal;
  gap: 0.5rem;
  min-height: 3.125rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.btn-light.btn-hero {
  border: 0;
  font-weight: 700;
  font-family: Inter, sans-serif;
  line-height: normal;
  cursor: pointer;
  box-shadow: 0 0 1.75rem rgb(var(--pure-white-rgb) / 0.22), 0 0 2px rgb(var(--pure-white-rgb) / 0.4);
}

.btn-light.btn-hero:hover {
  background-color: var(--pure-white);
}

.external-arrow {
  opacity: 0.7;
}


/* Bottom player bar */

.player-bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--edge) clamp(0.875rem, 2vw, 1.375rem);
  background: linear-gradient(0deg, rgb(var(--shadow-rgb) / 0.72) 0%, rgb(var(--shadow-rgb) / 0) 100%);
}

.progress {
  height: 0.3125rem;
  margin-bottom: 0.625rem;
  border-radius: 3px;
  background: rgb(var(--white-rgb) / 0.25);
}

.progress-fill {
  width: 22%;
  height: 100%;
  border-radius: 3px;
  background: var(--red);
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
}

.icon-button,
.queue-button {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.icon-button:hover,
.queue-button:hover {
  background-color: rgb(var(--white-rgb) / 0.14);
}

.icon-button {
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
}

.queue-button {
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  font: 600 0.875rem Inter, sans-serif;
}

.player-time {
  font-size: 0.875rem;
  color: var(--light-grey);
  font-variant-numeric: tabular-nums;
}

.spacer {
  flex: 1 1 auto;
}


/* Side panel: Projects and Contact (opened by js/home.js) */

.drawer {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  bottom: 0;
  flex: 0 0 auto;
  width: 0;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--panel);
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer.is-open {
  width: min(25rem, 100%);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: min(25rem, 100vw);
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  opacity: 0;
  transition: opacity 0.25s ease 0.1s;
}

.drawer.is-open .drawer-inner {
  opacity: 1;
}

/* A column with a small gap */
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.25rem 0.25rem;
}

.panel-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.muted-small {
  font-size: 0.8125rem;
  color: var(--grey);
}

.strong {
  font-weight: 600;
}


/* Projects list */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.project-link {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.project-link:hover {
  background-color: var(--hover);
}

.project-thumb {
  position: relative;
  display: flex;
  flex: 0 0 9.375rem;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--line);
  color: var(--grey-dark);
  font-size: 0.75rem;
}

.project-link:hover .project-thumb {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.project-semester {
  position: absolute;
  right: 0.375rem;
  bottom: 0.375rem;
  padding: 2px 0.375rem;
  border-radius: 0.25rem;
  background: rgb(var(--shadow-rgb) / 0.82);
  color: var(--pure-white);
  font-size: 0.75rem;
}

.project-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.project-kind {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
}

.project-title {
  font-weight: 600;
  line-height: 1.3;
}

.drawer-footnote {
  margin: 0.375rem 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--grey-dark);
}


/* Contact panel */

.contact {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  padding: 0.25rem 0.25rem 1.5rem;
}

.contact-hello {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.contact-avatar {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--blue);
}

.contact-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
}

.contact-intro {
  margin: 0;
  line-height: 1.6;
  color: var(--light-grey);
}

.availability {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: rgb(var(--blue-rgb) / 0.16);
  color: var(--blue-pale);
  font-size: 0.8125rem;
}

.availability span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--card-raised);
}

/* Small blue headings such as EMAIL and TOOLKIT */
.label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.label-inline {
  margin: 0;
}

.label-spaced {
  margin-bottom: 0.75rem;
}

.contact-email {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  word-break: break-all;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.button-row .btn {
  flex: 1 1 8.75rem;
  min-height: 2.875rem;
}

.button-row .btn-outline {
  flex-basis: 7.5rem;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--white);
  font: 600 0.9375rem Inter, sans-serif;
  cursor: pointer;
}

.copy-status {
  min-height: 1.125rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--blue-pale);
}

.link-row {
  justify-content: space-between;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 0.75rem;
  background-color: var(--line);
}

.details {
  margin: 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.contact .detail-row:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-term {
  color: var(--grey);
}

.detail-value {
  margin: 0;
  font-weight: 600;
}

.study .detail-value {
  text-align: right;
}


/* About me pop-up (opened by js/home.js) */

.about-layer {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(4rem, 9vh, 6rem) clamp(0.75rem, 3vw, 2.5rem) clamp(4.5rem, 10vh, 6.25rem);
  animation: fade-in 0.22s ease both;
}

.about-scrim {
  position: absolute;
  inset: 0;
  background: rgb(var(--scrim-rgb) / 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.about {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(65rem, 100%);
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.125rem;
  background: var(--panel);
  box-shadow: 0 1.875rem 5rem rgb(var(--shadow-rgb) / 0.6);
  animation: pop-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

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

.about-header {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem 0.625rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.about-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.about-side {
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-avatar {
  flex: 0 0 6.5rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--blue);
}

.about-name-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.about-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-role,
.maverick-handle {
  font-size: 0.875rem;
  color: var(--grey);
}

.about-side .btn {
  min-height: 3rem;
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  min-width: 0;
}

.about-bio {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--light-grey);
}


/* About me: key numbers */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card-raised);
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
  line-height: 1.05;
  color: var(--white);
}

.stat-label {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--grey);
}


/* About me: MAVERICK */

.maverick {
  position: relative;
  overflow: hidden;
  padding: clamp(1.375rem, 3vw, 2.25rem);
  border: 1px solid var(--border-dark);
  border-radius: 1.125rem;
  background: radial-gradient(120% 140% at 100% 0%, rgb(var(--red-rgb) / 0.38) 0%, rgb(var(--red-rgb) / 0.08) 45%, rgb(var(--panel-rgb) / 0) 70%), var(--maverick-bg);
}

.maverick-watermark {
  position: absolute;
  right: -0.04em;
  bottom: -0.18em;
  margin: 0;
  font-family: var(--font-poster);
  font-size: clamp(5.625rem, 15vw, 11.875rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--white-rgb) / 0.1);
  white-space: nowrap;
  pointer-events: none;
}

.maverick-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  max-width: 47.5rem;
}

.maverick-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.soar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--red);
  color: var(--pure-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.maverick-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.maverick-name {
  color: var(--red-light);
}

.maverick-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--light-grey);
}

.maverick-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(var(--white-rgb) / 0.12);
  border-radius: 0.75rem;
  background: rgb(var(--black-rgb) / 0.55);
}

.maverick-stat-number {
  font-family: var(--font-poster);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--pure-white);
}

.maverick-stat-label {
  font-size: 0.8125rem;
  color: var(--light-grey);
}

.maverick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.youtube-button {
  justify-content: normal;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.375rem 0 1rem;
  background-color: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9375rem;
}

.youtube-button:hover {
  background-color: var(--pure-white);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.4375rem 0.875rem;
  border: 1px solid rgb(var(--white-rgb) / 0.16);
  border-radius: 999px;
  background: rgb(var(--white-rgb) / 0.1);
  font-size: 0.875rem;
}


/* About me: toolkit (logo tiles use each tool's brand colour) */

.tool-groups {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.tool-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-group-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey);
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr));
  gap: 0.5rem;
}

.tool {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card-raised);
}

.tool-icon {
  display: inline-flex;
  flex: 0 0 2.25rem;
  justify-content: center;
  align-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5625rem;
}

.tool-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.tool-icon.figma {
  background: #A259FF;
}

.tool-icon.photoshop {
  background: #001E36;
}

.tool-icon.canva {
  background: #00C4CC;
}

.tool-icon.premiere {
  background: #00005B;
}

.tool-icon.blender {
  background: #E87D0D;
}

.tool-icon.fusion {
  background: #F26B21;
}

.tool-icon.html {
  background: #E34F26;
}

.tool-icon.css {
  background: #663399;
}

.tool-icon.javascript {
  background: #F7DF1E;
}

.tool-icon.csharp {
  background: #512BD4;
}

.tool-icon.dark {
  background: var(--black);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.tool-icon.claude {
  background: #D97757;
}

.tool-icon.gemini {
  background: #1F2A44;
}


/* About me: experience, skills and study */

.job {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-dates {
  font-size: 0.8125rem;
  color: var(--grey);
  white-space: nowrap;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.skill {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--line);
  font-size: 0.875rem;
}


/* About me: photos */

.photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.photo {
  position: relative;
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.625rem;
}


/* Keyboard focus and paused motion */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.is-paused .marquee-big,
.is-paused .marquee-small,
.is-paused .live-dot {
  animation-play-state: paused;
}


/* Larger phones */

@media (min-width: 401px) {
  .main-nav a,
  .main-nav button {
    padding: 0 0.75rem;
    font-size: 0.875rem;
  }

  .intro-buttons {
    flex-wrap: wrap;
    gap: 0.625rem;
  }

  .btn-hero {
    gap: 0.625rem;
    font-size: 0.9375rem;
  }

  .btn-light.btn-hero {
    padding: 0 1.625rem;
  }

  .btn-glass.btn-hero {
    padding: 0 1.375rem 0 1.125rem;
  }
}


/* Tablets */

@media (min-width: 701px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* Desktop: the full stage layout */

@media (min-width: 761px) {
  .stage-haze {
    background: radial-gradient(58% 72% at 20% 52%, rgb(var(--haze-rgb) / 0.17) 0%, rgb(var(--haze-rgb) / 0.08) 42%, rgb(var(--haze-rgb) / 0) 72%);
  }

  .marquee {
    top: 38%;
    transform: none;
  }

  .marquee-big {
    font-size: 15.5cqw;
  }

  .marquee-small {
    font-size: 7cqw;
  }

  .character {
    left: 56.9%;
    top: auto;
    bottom: 19.6%;
    height: 65.4%;
  }

  .main-nav {
    justify-content: normal;
    width: auto;
    height: 2.25rem;
  }

  .main-nav a,
  .main-nav button {
    flex: 0 1 auto;
    justify-content: normal;
    padding: 0 1.125rem;
    font-size: 0.9375rem;
  }

  .intro {
    right: auto;
    top: 50%;
    bottom: auto;
    max-width: min(40%, 32.5rem);
    gap: 0.875rem;
    transform: translateY(-58%);
  }

  .intro-hi {
    display: block;
  }

  .intro-name {
    font-size: clamp(2.25rem, 5cqw, 4.75rem);
  }

  .long-text {
    display: inline;
  }

  .short-text {
    display: none;
  }

  .btn-hero {
    min-height: 3.375rem;
  }

  .btn-light.btn-hero {
    font-size: 1rem;
  }

  .drawer {
    position: static;
    inset: auto;
    z-index: auto;
  }
}


/* Wide screens: two-column About me */

@media (min-width: 861px) {
  .about-grid {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  }

  .about-side {
    position: sticky;
  }

  .photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* Less motion for people who ask for it */

@media (prefers-reduced-motion: reduce) {
  .marquee-big,
  .marquee-small,
  .live-dot {
    animation: none;
  }

  .drawer,
  .drawer-inner {
    transition: none;
  }

  .about-layer,
  .about {
    animation: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }

  .nav-indicator {
    transition: none;
  }
}
