:root {
  /* Core backgrounds */
  --background: #08080d;
  --surface: #151826;
  --surface-light: #1d2133;

  /* Text */
  --text-primary: #f8f7ff;
  --text-secondary: rgba(248, 247, 255, 0.68);
  --text-dark: #08080d;

  /* Brand colours */
  --primary: #7c5cff;
  --secondary: #35d9ff;
  --tertiary: #ff4fa3;
  --accent: #f8f7ff;

  /* Layout */
  --page-padding: clamp(1.25rem, 4vw, 4.5rem);
  --header-height: 88px;

  /* Animation */
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

/* --------------------------------
   Reset
-------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  overflow-x: hidden;

  background: var(--background);
  color: var(--text-primary);

  font-family: "Inter", Arial, sans-serif;
  cursor: auto;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

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

::selection {
  background: var(--tertiary);
  color: var(--text-dark);
}

/* --------------------------------
   Shared styles
-------------------------------- */

.section-padding {
  position: relative;

  padding:
    clamp(6rem, 10vw, 10rem)
    var(--page-padding);
}

.eyebrow {
  margin: 0;

  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.17em;
}

.dark-text {
  color: var(--text-primary);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 9997;

  pointer-events: none;

  opacity: 0.04;

  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.45) 1px,
      transparent 1px
    ),
    linear-gradient(
      rgba(255, 255, 255, 0.45) 1px,
      transparent 1px
    );

  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

/* --------------------------------
   Custom cursor
-------------------------------- */

body {
  cursor: auto;
}

body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled .tilt-card {
  cursor: none;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;

  pointer-events: none;
  border-radius: 50%;

  opacity: 0;

  transform:
    translate3d(-100px, -100px, 0)
    translate(-50%, -50%);

  transition:
    width 180ms ease,
    height 180ms ease,
    opacity 180ms ease,
    background 180ms ease,
    border-color 180ms ease;

  will-change: transform;
}

body.cursor-visible .cursor {
  opacity: 1;
}

.cursor-dot {
  width: 8px;
  height: 8px;

  background: var(--secondary);
}

.cursor-ring {
  width: 36px;
  height: 36px;

  border: 1px solid rgba(248, 247, 255, 0.72);
}

.cursor-ring.active {
  width: 68px;
  height: 68px;

  border-color: var(--tertiary);
  background: rgba(255, 79, 163, 0.12);
}

@media (pointer: coarse), (max-width: 780px) {
  .cursor {
    display: none;
  }
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: var(--header-height);

  padding: 0 var(--page-padding);

  color: white;
  mix-blend-mode: difference;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;

  font-size: 1rem;
  font-weight: 900;
}

.brand-circle {
  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-status {
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  padding: 0;
  border: 0;

  background: none;

  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.13em;

  cursor: none;
}

.menu-icon {
  display: grid;
  gap: 6px;

  width: 30px;
}

.menu-icon i {
  display: block;

  width: 100%;
  height: 1px;

  background: currentColor;

  transition: transform 300ms var(--ease);
}

.menu-open .menu-icon i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .menu-icon i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* --------------------------------
   Full-screen menu
-------------------------------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    calc(var(--header-height) + 2rem)
    var(--page-padding)
    2rem;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(53, 217, 255, 0.3),
      transparent 27rem
    ),
    radial-gradient(
      circle at 15% 82%,
      rgba(255, 79, 163, 0.25),
      transparent 30rem
    ),
    var(--primary);

  color: var(--text-primary);

  opacity: 0;
  visibility: hidden;

  transform: translateY(-100%);

  transition:
    transform 650ms var(--ease),
    opacity 400ms ease,
    visibility 0s linear 650ms;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  transition:
    transform 650ms var(--ease),
    opacity 400ms ease;
}

.menu-background-text {
  position: absolute;
  left: 50%;
  top: 50%;

  font-size: clamp(7rem, 22vw, 24rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  white-space: nowrap;

  opacity: 0.065;

  transform: translate(-50%, -50%);
}

.menu-navigation {
  position: relative;

  display: grid;
  gap: 0.35rem;
}

.menu-navigation a {
  display: flex;
  align-items: baseline;
  gap: 1rem;

  width: fit-content;

  font-size: clamp(3.4rem, 9vw, 8.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.07em;

  transition:
    color 300ms ease,
    transform 300ms var(--ease);
}

.menu-navigation a::before {
  content: attr(data-number);

  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.menu-navigation a:hover {
  color: var(--secondary);

  transform: translateX(1rem);
}

.menu-footer {
  position: absolute;
  left: var(--page-padding);
  right: var(--page-padding);
  bottom: 2rem;

  display: flex;
  justify-content: space-between;

  font-family: "DM Mono", monospace;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

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

.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;

  overflow: hidden;

  padding-top: calc(var(--header-height) + 4rem);

  background:
    radial-gradient(
      circle at 76% 28%,
      rgba(124, 92, 255, 0.4),
      transparent 29rem
    ),
    radial-gradient(
      circle at 12% 85%,
      rgba(53, 217, 255, 0.14),
      transparent 27rem
    ),
    radial-gradient(
      circle at 88% 84%,
      rgba(255, 79, 163, 0.13),
      transparent 25rem
    ),
    var(--background);
}

.hero-grid {
  position: absolute;
  inset: 0;

  opacity: 0.15;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    );

  background-size: 72px 72px;

  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 92%
  );
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
}

.hero-title {
  margin: clamp(2rem, 5vw, 4rem) 0 0;

  font-size: clamp(3.3rem, 9vw, 9.6rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.075em;
}

.hero-line {
  display: block;

  opacity: 0;

  transform: translateY(120%);

  animation: heroTextIn 1s var(--ease) forwards;
}

.line-one {
  animation-delay: 100ms;
}

.line-two {
  position: relative;

  margin-left: clamp(0rem, 7vw, 7rem);

  color: var(--tertiary);

  text-shadow: 0 0 55px rgba(124, 92, 255, 0.22);

  animation-delay: 240ms;
}

.line-three {
  text-align: right;

  animation-delay: 380ms;
}

@keyframes heroTextIn {
  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.orbit {
  position: absolute;
  right: clamp(-1rem, 1vw, 1rem);
  top: 50%;

  width: clamp(3.2rem, 8vw, 8rem);
  aspect-ratio: 1;

  border: 1px solid var(--secondary);
  border-radius: 50%;

  color: var(--secondary);

  transform: translateY(-50%);

  animation: orbitSpin 4s linear infinite;
}

.orbit i {
  position: absolute;
  left: 50%;
  top: -6px;

  width: 12px;
  height: 12px;

  background: currentColor;
  border-radius: 50%;

  box-shadow: 0 0 20px currentColor;

  transform: translateX(-50%);
}

@keyframes orbitSpin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }

  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;

  margin-top: clamp(3rem, 7vw, 6rem);
}

.hero-introduction {
  max-width: 38rem;

  margin:
    0
    0
    0
    clamp(0rem, 14vw, 14rem);

  color: var(--text-secondary);

  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.65;
}

.round-button {
  position: relative;

  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  width: clamp(8.5rem, 12vw, 11rem);
  aspect-ratio: 1;

  background: var(--secondary);
  color: var(--text-dark);

  border-radius: 50%;

  box-shadow:
    0 0 0 rgba(53, 217, 255, 0),
    0 16px 45px rgba(53, 217, 255, 0.13);

  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;

  transition:
    transform 300ms var(--ease),
    border-radius 300ms var(--ease),
    background 300ms ease,
    box-shadow 300ms ease;
}

.round-button:hover {
  background: var(--tertiary);

  border-radius: 36% 64% 55% 45%;

  box-shadow: 0 20px 55px rgba(255, 79, 163, 0.25);

  transform: rotate(-7deg) scale(1.04);
}

.round-button-arrow {
  position: absolute;
  right: 1.4rem;
  bottom: 1.3rem;

  font-size: 1.3rem;
}

.floating-card {
  position: absolute;
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 130px;
  height: 160px;

  padding: 1rem;

  border: 1px solid rgba(248, 247, 255, 0.22);

  background: rgba(248, 247, 255, 0.035);

  backdrop-filter: blur(12px);

  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;

  transition: translate 180ms ease-out;
}

.floating-card strong {
  align-self: flex-end;

  color: var(--tertiary);

  font-size: 2.4rem;
}

.card-one {
  right: 10%;
  top: 18%;

  rotate: 8deg;
}

.card-two {
  left: 4%;
  bottom: 9%;

  rotate: -7deg;
}

.card-three {
  right: 2%;
  top: 48%;

  rotate: 14deg;
}

/* --------------------------------
   Continuous moving banner
-------------------------------- */

.marquee {
  width: 100%;
  overflow: hidden;

  border-top: 1px solid var(--secondary);
  border-bottom: 1px solid var(--secondary);

  background: var(--secondary);
  color: var(--text-dark);
}

.marquee-track {
  display: flex;
  width: max-content;

  will-change: transform;

  /*
    Starts one complete group to the left and travels right.
    The duplicate group makes the movement seamless.
  */
  animation: marquee-right 32s linear infinite;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);

  padding:
    1.8rem
    clamp(1.5rem, 3vw, 3.5rem)
    1.8rem
    0;
}

.marquee-group span {
  flex-shrink: 0;

  font-size: clamp(1.35rem, 2.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.marquee-group i {
  flex-shrink: 0;

  color: var(--primary);

  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-style: normal;
}

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

  to {
    transform: translateX(0);
  }
}

/* Slightly faster on mobile */

@media (max-width: 780px) {
  .marquee-track {
    animation-duration: 24s;
  }

  .marquee-group {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation-play-state: paused;
  }
}

/* --------------------------------
   Section headings
-------------------------------- */

.section-heading {
  display: grid;

  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(280px, 0.75fr);

  align-items: end;
  gap: 3rem;

  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-heading h2,
.about h2 {
  margin: 1rem 0 0;

  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.section-description {
  max-width: 34rem;

  margin: 0;

  color: var(--text-secondary);

  font-size: 1.05rem;
  line-height: 1.65;
}

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

.work {
  background:
    radial-gradient(
      circle at 6% 12%,
      rgba(53, 217, 255, 0.1),
      transparent 30rem
    ),
    radial-gradient(
      circle at 94% 48%,
      rgba(255, 79, 163, 0.08),
      transparent 30rem
    ),
    var(--surface);

  color: var(--text-primary);
}

.work .dark-text {
  color: var(--secondary);
}

.project-card {
  margin-top: clamp(2rem, 5vw, 4rem);

  padding: clamp(1.25rem, 3vw, 2.5rem);

  overflow: hidden;

  border: 1px solid rgba(248, 247, 255, 0.14);
  border-radius: 2rem;

  color: var(--text-primary);

  opacity: 0;

  transform: translateY(50px);

  transition:
    opacity 800ms ease,
    transform 800ms var(--ease),
    box-shadow 400ms ease;
}

.project-card.visible {
  opacity: 1;

  transform: translateY(0);
}

.project-card:hover {
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(248, 247, 255, 0.08);
}

/*
  These class names come from the existing HTML.
  Their colours now follow the new palette.
*/

.project-gold {
  background:
    radial-gradient(
      circle at 80% 18%,
      rgba(53, 217, 255, 0.22),
      transparent 24rem
    ),
    var(--primary);
}

.project-blue {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(124, 92, 255, 0.22),
      transparent 24rem
    ),
    #087f99;

  background:
    linear-gradient(
      135deg,
      var(--secondary),
      #209fbe
    );

  color: var(--text-dark);
}

.project-coral {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(248, 247, 255, 0.2),
      transparent 24rem
    ),
    var(--tertiary);

  color: var(--text-dark);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;

  padding-bottom: 1rem;

  border-bottom: 1px solid currentColor;

  opacity: 0.78;

  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.project-layout {
  display: grid;

  grid-template-columns:
    minmax(270px, 0.78fr)
    minmax(0, 1.22fr);

  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);

  min-height: clamp(36rem, 58vw, 54rem);
}

.project-label {
  margin: 0 0 1.2rem;

  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.project-copy h3 {
  margin: 0;

  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.project-copy > p:not(.project-label) {
  max-width: 31rem;

  margin: 2rem 0;

  font-size: 1.05rem;
  line-height: 1.65;
}

.project-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;

  padding-bottom: 0.45rem;

  border-bottom: 1px solid currentColor;

  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.project-visual {
  min-height: 34rem;

  display: grid;
  place-items: center;

  transform-style: preserve-3d;

  transition: transform 170ms ease-out;
}

/* --------------------------------
   World Cup project mock-up
-------------------------------- */

.browser {
  width: min(100%, 760px);

  overflow: hidden;

  border: 2px solid var(--background);
  border-radius: 1rem;

  background: var(--accent);

  box-shadow:
    18px 20px 0 rgba(8, 8, 13, 0.18),
    0 22px 55px rgba(8, 8, 13, 0.26);

  transform: rotate(2deg);
}

.browser-bar {
  display: flex;
  gap: 0.45rem;

  padding: 0.8rem 1rem;

  border-bottom: 2px solid var(--background);

  background: var(--surface-light);
}

.browser-bar i {
  width: 11px;
  height: 11px;

  border: 1px solid var(--accent);
  border-radius: 50%;
}

.browser-bar i:nth-child(1) {
  background: var(--tertiary);
}

.browser-bar i:nth-child(2) {
  background: var(--primary);
}

.browser-bar i:nth-child(3) {
  background: var(--secondary);
}

.football-demo {
  position: relative;

  min-height: 430px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(53, 217, 255, 0.12),
      transparent 12rem
    ),
    var(--surface);
}

.demo-title {
  position: absolute;
  left: 50%;
  top: 1.4rem;
  z-index: 2;

  color: var(--accent);

  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.16em;

  transform: translateX(-50%);
}

.pitch {
  position: absolute;
  inset: 3.5rem 1.5rem 1.5rem;

  border: 2px solid rgba(53, 217, 255, 0.42);
}

.pitch::before {
  content: "";

  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;

  width: 2px;

  background: rgba(53, 217, 255, 0.42);
}

.pitch::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  width: 92px;
  height: 92px;

  border: 2px solid rgba(53, 217, 255, 0.42);
  border-radius: 50%;

  transform: translate(-50%, -50%);
}

.football {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  font-size: 4rem;

  filter: drop-shadow(0 0 20px rgba(53, 217, 255, 0.32));

  animation: footballBounce 2.6s ease-in-out infinite;
}

@keyframes footballBounce {
  0%,
  100% {
    transform:
      translate(-50%, -50%)
      rotate(-10deg);
  }

  50% {
    transform:
      translate(-50%, -72%)
      rotate(15deg);
  }
}

.team-card {
  position: absolute;
  bottom: 2.7rem;
  z-index: 2;

  width: 130px;

  padding: 1rem;

  border: 1px solid rgba(248, 247, 255, 0.35);
  border-radius: 0.8rem;

  background: rgba(124, 92, 255, 0.18);
  color: var(--accent);

  backdrop-filter: blur(10px);
}

.team-card small {
  display: block;

  font-family: "DM Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.1em;
}

.team-card strong {
  display: block;

  margin-top: 0.4rem;

  font-size: 2.7rem;
}

.team-left {
  left: 2.4rem;

  transform: rotate(-7deg);
}

.team-right {
  right: 2.4rem;

  background: rgba(255, 79, 163, 0.18);

  transform: rotate(7deg);
}

/* --------------------------------
   PWA project mock-up
-------------------------------- */

.device-display {
  position: relative;

  width: min(100%, 760px);
  height: 500px;
}

.desktop-device,
.phone-device {
  border: 2px solid var(--background);

  background: var(--accent);

  box-shadow:
    18px 20px 0 rgba(8, 8, 13, 0.18),
    0 22px 55px rgba(8, 8, 13, 0.24);
}

.desktop-device {
  position: absolute;
  inset: 8% 3% 12% 0;

  overflow: hidden;

  border-radius: 1rem;

  transform: rotate(-2deg);
}

.device-header {
  height: 42px;

  border-bottom: 2px solid var(--background);

  background: var(--primary);
}

.dashboard {
  display: grid;
  grid-template-columns: 25% 1fr;

  min-height: 100%;
}

.dashboard aside {
  border-right: 2px solid var(--background);

  background: var(--surface);
}

.dashboard-content {
  padding: 2rem;
}

.dashboard-content > span {
  display: block;

  height: 16px;

  margin-bottom: 0.85rem;

  border-radius: 999px;

  background: rgba(124, 92, 255, 0.22);
}

.dashboard-content > span:nth-child(2) {
  width: 70%;

  background: rgba(53, 217, 255, 0.28);
}

.dashboard-content > span:nth-child(3) {
  width: 48%;

  background: rgba(255, 79, 163, 0.24);
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;

  margin-top: 2.2rem;
}

.dashboard-cards i {
  height: 170px;

  border: 2px solid var(--background);
  border-radius: 1rem;
}

.dashboard-cards i:nth-child(1) {
  background: var(--primary);
}

.dashboard-cards i:nth-child(2) {
  background: var(--secondary);
}

.dashboard-cards i:nth-child(3) {
  background: var(--tertiary);
}

.phone-device {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 31%;
  height: 75%;

  padding: 1.3rem;

  border-radius: 2rem;

  transform: rotate(7deg);
}

.phone-speaker {
  width: 30%;
  height: 6px;

  margin: 0 auto 1.8rem;

  border-radius: 999px;

  background: var(--background);
}

.phone-image {
  height: 120px;

  border: 2px solid var(--background);
  border-radius: 1rem;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );
}

.phone-line {
  height: 12px;

  margin-top: 1rem;

  border-radius: 999px;

  background: var(--surface);
}

.phone-line.short {
  width: 63%;
}

.phone-button {
  height: 42px;

  margin-top: 2rem;

  border-radius: 999px;

  background: var(--tertiary);
}

/* --------------------------------
   Digital CV mock-up
-------------------------------- */

.cv-design {
  position: relative;

  width: min(100%, 740px);
  height: 470px;

  overflow: hidden;

  border: 2px solid var(--background);
  border-radius: 1rem;

  background: var(--accent);

  box-shadow:
    18px 20px 0 rgba(8, 8, 13, 0.18),
    0 22px 55px rgba(8, 8, 13, 0.25);

  transform: rotate(2deg);
}

.cv-name {
  position: absolute;
  left: -0.4rem;
  top: 0.4rem;

  color: var(--background);

  font-size: clamp(5rem, 11vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.1em;
}

.cv-tag {
  position: absolute;
  z-index: 2;

  padding: 0.75rem 1.15rem;

  border: 2px solid var(--background);
  border-radius: 999px;

  color: var(--background);

  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
}

.tag-web {
  left: 10%;
  top: 37%;

  background: var(--secondary);

  transform: rotate(-10deg);
}

.tag-design {
  right: 13%;
  top: 24%;

  background: var(--primary);
  color: var(--accent);

  transform: rotate(11deg);
}

.tag-code {
  left: 38%;
  bottom: 13%;

  background: var(--tertiary);

  transform: rotate(-4deg);
}

.cv-shape {
  position: absolute;
  right: 10%;
  bottom: -13%;

  width: 42%;
  height: 78%;

  border: 2px solid var(--background);
  border-radius: 50% 50% 0 0;

  background:
    linear-gradient(
      160deg,
      var(--primary),
      var(--tertiary)
    );
}

.cv-lines {
  position: absolute;
  left: 6%;
  bottom: 9%;

  display: grid;
  gap: 0.8rem;

  width: 36%;
}

.cv-lines i {
  display: block;

  height: 12px;

  border-radius: 999px;

  background: var(--background);
}

.cv-lines i:nth-child(2) {
  width: 78%;
}

.cv-lines i:nth-child(3) {
  width: 92%;
}

.cv-lines i:nth-child(4) {
  width: 58%;
}

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

.about {
  min-height: 100vh;

  overflow-x: hidden;
  overflow-y: visible;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(124, 92, 255, 0.35),
      transparent 30rem
    ),
    radial-gradient(
      circle at 12% 88%,
      rgba(53, 217, 255, 0.12),
      transparent 27rem
    ),
    radial-gradient(
      circle at 90% 82%,
      rgba(255, 79, 163, 0.13),
      transparent 25rem
    ),
    var(--surface-light);

  color: var(--text-primary);
}

.about .dark-text {
  color: var(--secondary);
}

.about-number {
  position: absolute;
  right: -1rem;
  top: 1rem;

  color: var(--primary);

  font-size: clamp(12rem, 30vw, 34rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.1em;

  opacity: 0.16;
}

.about-content {
  position: relative;
  z-index: 2;

  margin-top: clamp(3rem, 7vw, 7rem);
}

.about h2 {
  max-width: 100%;
  line-height: 1;
}


.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 9rem);

  margin-top: clamp(4rem, 8vw, 8rem);
}

.about-lead {
  margin: 0;

  font-size: clamp(1.5rem, 2.5vw, 2.55rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.about-details {
  max-width: 37rem;
}

.about-details p {
  margin: 0 0 1.5rem;

  color: var(--text-secondary);

  font-size: 1.03rem;
  line-height: 1.7;
}

.text-link {
  margin-top: 1.5rem;

  color: var(--secondary);
}

.sticker {
  position: absolute;

  display: grid;
  place-items: center;

  width: 130px;
  aspect-ratio: 1;

  padding: 1rem;

  border: 2px solid var(--accent);
  border-radius: 50%;

  color: var(--text-dark);

  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.sticker-one {
  right: 8%;
  top: 19%;

  background: var(--secondary);

  transform: rotate(8deg);
}

.sticker-two {
  right: 3%;
  bottom: 13%;

  background: var(--tertiary);

  transform: rotate(-10deg);
}

.sticker-three {
  left: 3%;
  bottom: 10%;

  background: var(--primary);
  color: var(--accent);

  transform: rotate(11deg);
}

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

.skills {
  min-height: 100vh;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(53, 217, 255, 0.18),
      transparent 28rem
    ),
    radial-gradient(
      circle at 82% 72%,
      rgba(255, 79, 163, 0.18),
      transparent 30rem
    ),
    radial-gradient(
      circle at 56% 8%,
      rgba(124, 92, 255, 0.18),
      transparent 27rem
    ),
    var(--background);

  color: var(--text-primary);
}

.skills-playground {
  position: relative;
  min-height: 900px;

  border-top: 1px solid rgba(248, 247, 255, 0.25);
  border-bottom: 1px solid rgba(248, 247, 255, 0.25);
}

.skill {
  position: absolute;
  left: var(--x);
  top: var(--y);

  text-align: center;
  line-height: 1.35;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid rgba(248, 247, 255, 0.7);
  border-radius: 50%;

  background: rgba(248, 247, 255, 0.02);
  color: var(--text-primary);

  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;

  cursor: grab;
  user-select: none;
  touch-action: none;

  backdrop-filter: blur(8px);

  transition:
    color 250ms ease,
    background 250ms ease,
    border-color 250ms ease,
    transform 250ms var(--ease),
    box-shadow 250ms ease;
}

.skill:nth-child(3n + 1) {
  border-color: var(--primary);
}

.skill:nth-child(3n + 2) {
  border-color: var(--secondary);
}

.skill:nth-child(3n + 3) {
  border-color: var(--tertiary);
}

.skill:hover,
.skill.dragging {
  border-color: var(--secondary);

  background: var(--secondary);
  color: var(--text-dark);

  box-shadow:
    0 0 50px rgba(53, 217, 255, 0.3);

  transform: scale(1.08);
}

.skill.dragging {
  z-index: 10;

  cursor: grabbing;
}

.skill-small {
  width: 105px;
  height: 105px;
}

.skill-medium {
  width: 145px;
  height: 145px;
}

.skill-large {
  width: 190px;
  height: 190px;
}

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

.contact {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background:
    radial-gradient(
      circle at 18% 15%,
      rgba(124, 92, 255, 0.23),
      transparent 29rem
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(53, 217, 255, 0.14),
      transparent 32rem
    ),
    radial-gradient(
      circle at 75% 12%,
      rgba(255, 79, 163, 0.12),
      transparent 25rem
    ),
    var(--background);
}

.contact-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.65rem;

  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.availability i {
  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--secondary);

  box-shadow:
    0 0 0 6px rgba(53, 217, 255, 0.1);

  animation: availabilityPulse 1.8s ease-in-out infinite;
}

@keyframes availabilityPulse {
  50% {
    box-shadow:
      0 0 0 13px rgba(53, 217, 255, 0.02);
  }
}

.contact-link {
  position: relative;

  display: flex;
  flex-direction: column;

  width: fit-content;

  margin: 0;
}

.contact-small {
  color: var(--secondary);

  font-family: "DM Mono", monospace;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  letter-spacing: 0.12em;
}

.contact-large {
  font-size: clamp(4.7rem, 14vw, 14rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.085em;

  transition:
    color 300ms ease,
    text-shadow 300ms ease;
}

.contact-link:hover .contact-large {
  color: var(--tertiary);

  text-shadow:
    0 0 50px rgba(255, 79, 163, 0.24);
}

.contact-arrow {
  position: absolute;
  right: -0.4em;
  top: 0.1em;

  color: var(--primary);

  font-size: clamp(2rem, 5vw, 5rem);

  transition:
    color 300ms ease,
    transform 300ms var(--ease);
}

.contact-link:hover .contact-arrow {
  color: var(--secondary);

  transform: translate(0.3em, -0.3em);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;

  padding-top: 1.5rem;

  border-top: 1px solid rgba(248, 247, 255, 0.18);

  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.back-to-top {
  justify-self: end;

  padding: 0;
  border: 0;

  background: none;
  color: inherit;

  cursor: none;

  transition: color 200ms ease;
}

.back-to-top:hover {
  color: var(--tertiary);
}

/* --------------------------------
   Reveal animations
-------------------------------- */

.reveal {
  opacity: 0;

  transform: translateY(32px);

  transition:
    opacity 800ms ease,
    transform 800ms var(--ease);
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

/* --------------------------------
   Tablet
-------------------------------- */

@media (max-width: 1100px) {
  .floating-card {
    opacity: 0.5;
  }

  .card-three {
    display: none;
  }

  .project-layout {
    grid-template-columns: 1fr;

    min-height: auto;

    padding: 4rem 0 2rem;
  }

  .project-copy {
    max-width: 46rem;
  }

  .project-visual {
    min-height: 30rem;
  }

  .sticker {
    display: none;
  }
}

/* --------------------------------
   Mobile
-------------------------------- */

@media (max-width: 780px) {
  :root {
    --header-height: 72px;
  }

  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .brand-status {
    display: none;
  }

  .menu-toggle,
  .back-to-top,
  .skill {
    cursor: pointer;
  }

  .menu-navigation a {
    font-size: clamp(3.2rem, 16vw, 6rem);
  }

  .menu-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .hero {
    min-height: 930px;
    align-items: flex-start;

    padding-top: calc(var(--header-height) + 5rem);
  }

  .hero-title {
    margin-top: 2.3rem;

    font-size: clamp(3rem, 14vw, 5.7rem);
    line-height: 0.89;
  }

  .line-two {
    margin-left: 0;
  }

  .line-three {
    text-align: left;
  }

  .orbit {
    display: none;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;

    margin-top: 4rem;
  }

  .hero-introduction {
    margin-left: 0;
  }

  .round-button {
    align-self: flex-end;
  }

  .floating-card {
    width: 100px;
    height: 122px;
  }

  .card-one {
    top: 42% !important;
    right: 4% !important;
    bottom: auto !important;
    left: auto !important;

    transform: rotate(8deg);
  }

  .card-two {
    left: 6%;
    bottom: 6%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-card {
    border-radius: 1.4rem;
  }

  .project-meta {
    flex-direction: column;
  }

  .project-copy h3 {
    font-size: clamp(3rem, 14vw, 5.4rem);
  }

  .project-visual {
    min-height: 25rem;
  }

  .browser {
    box-shadow:
      10px 12px 0 rgba(8, 8, 13, 0.18);
  }

  .football-demo {
    min-height: 330px;
  }

  .team-card {
    width: 95px;
  }

  .team-card strong {
    font-size: 2rem;
  }

  .team-left {
    left: 1rem;
  }

  .team-right {
    right: 1rem;
  }

  .device-display {
    height: 360px;
  }

  .desktop-device {
    right: 8%;
  }

  .dashboard-content {
    padding: 1rem;
  }

  .dashboard-cards i {
    height: 100px;
  }

  .phone-device {
    width: 35%;
    height: 72%;
  }

  .cv-design {
    height: 340px;

    box-shadow:
      10px 12px 0 rgba(8, 8, 13, 0.18);
  }

  .about-columns {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    margin: 7rem 0;
  }

  .design-portfolio-link {
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;

    margin-top: 3.5rem;
    padding: 1.2rem 0;

    font-size: 0.68rem;
    line-height: 1.5;
  }


  /* --------------------------------
   Mobile skills layout
  -------------------------------- */

  .skills-playground {
    position: relative;
    min-height: 1720px;
    width: 100%;

    overflow: hidden;

    border-top: 1px solid rgba(248, 247, 255, 0.25);
    border-bottom: 1px solid rgba(248, 247, 255, 0.25);
  }

  .skill {
    text-align: center;
    line-height: 1.25;

    font-size: 0.67rem;
  }

  /* Smaller mobile circles */

  .skill-large {
    width: 138px;
    height: 138px;
  }

  .skill-medium {
    width: 112px;
    height: 112px;
  }

  .skill-small {
    width: 88px;
    height: 88px;
  }

  /* 1 — JavaScript */

  .skills-playground .skill:nth-child(1) {
    left: 2% !important;
    right: auto !important;
    top: 95px !important;
  }

  /* 2 — HTML */

  .skills-playground .skill:nth-child(2) {
    left: auto !important;
    right: 4% !important;
    top: 55px !important;
  }

  /* 3 — CSS */

  .skills-playground .skill:nth-child(3) {
    left: 44% !important;
    right: auto !important;
    top: 255px !important;
  }

  /* 4 — React */

  .skills-playground .skill:nth-child(4) {
    left: 3% !important;
    right: auto !important;
    top: 420px !important;
  }

  /* 5 — Three.js */

  .skills-playground .skill:nth-child(5) {
    left: auto !important;
    right: 4% !important;
    top: 470px !important;
  }

  /* 6 — Node.js */

  .skills-playground .skill:nth-child(6) {
    left: 34% !important;
    right: auto !important;
    top: 630px !important;
  }

  /* 7 — Firebase */

  .skills-playground .skill:nth-child(7) {
    left: auto !important;
    right: 2% !important;
    top: 760px !important;
  }

  /* 8 — Python */

  .skills-playground .skill:nth-child(8) {
    left: 2% !important;
    right: auto !important;
    top: 790px !important;
  }

  /* 9 — Figma */

  .skills-playground .skill:nth-child(9) {
    left: 39% !important;
    right: auto !important;
    top: 980px !important;
  }

  /* 10 — GitHub */

  .skills-playground .skill:nth-child(10) {
    left: auto !important;
    right: 5% !important;
    top: 1110px !important;
  }

  /* 11 — WordPress */

  .skills-playground .skill:nth-child(11) {
    left: 3% !important;
    right: auto !important;
    top: 1135px !important;
  }

  /* 12 — Shopify */

  .skills-playground .skill:nth-child(12) {
    left: 39% !important;
    right: auto !important;
    top: 1330px !important;
  }

  /* 13 — UX / UI */

  .skills-playground .skill:nth-child(13) {
    left: auto !important;
    right: 6% !important;
    top: 1510px !important;
  }

  .contact-top {
    flex-direction: column;
  }

  .contact-link {
    margin: 8rem 0;
  }

  .contact-large {
    font-size: clamp(4.2rem, 18vw, 8rem);
  }

  .contact-arrow {
    right: 0;
    top: -1.2em;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .back-to-top {
    justify-self: start;
  }
}

/* --------------------------------
   Small mobile
-------------------------------- */

@media (max-width: 430px) {
  .section-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 12.4vw;
  }

  .project-visual {
    min-height: 21rem;
  }

  .football-demo {
    min-height: 280px;
  }

  .football {
    font-size: 3rem;
  }

  .device-display {
    height: 300px;
  }

  .phone-device {
    padding: 0.8rem;
  }

  .cv-design {
    height: 300px;
  }

  .contact-large {
    font-size: 16.5vw;
  }
}

/* --------------------------------
   Reduced motion
-------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-line,
  .reveal,
  .project-card {
    opacity: 1;

    transform: none;
  }
}

@media (max-width: 390px) {
  .skills-playground {
    min-height: 1660px;
  }

  .skill-large {
    width: 126px;
    height: 126px;
  }

  .skill-medium {
    width: 104px;
    height: 104px;
  }

  .skill-small {
    width: 82px;
    height: 82px;
  }

  .skill {
    font-size: 0.62rem;
  }
}

@media (max-width: 780px) {
  .phone-device .phone-button {
    display: none !important;
  }
}

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

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  margin: clamp(6rem, 12vw, 12rem) 0;
}

.contact-actions .contact-link {
  margin: 0;
}

.design-portfolio-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);

  width: min(100%, 760px);

  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 1.4rem 0;

  border-top: 1px solid rgba(248, 247, 255, 0.25);
  border-bottom: 1px solid rgba(248, 247, 255, 0.25);

  font-family: "DM Mono", monospace;
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  letter-spacing: 0.1em;

  transition:
    color 300ms ease,
    border-color 300ms ease;
}

.design-link-number {
  color: var(--tertiary);
  font-size: 0.7rem;
}

.design-link-text {
  font-weight: 500;
}

.design-link-arrow {
  color: var(--secondary);
  font-size: clamp(1.4rem, 2vw, 2rem);

  transition:
    color 300ms ease,
    transform 300ms var(--ease);
}

.design-portfolio-link:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.design-portfolio-link:hover .design-link-arrow {
  color: var(--tertiary);
  transform: translate(0.3rem, -0.3rem);
}

/* --------------------------------
   About heading repair
-------------------------------- */

.about .about-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.4rem, 1vw, 1rem);

  width: 100%;
  max-width: none;

  margin: 0;

  line-height: 1;
  overflow: visible;
}

.about .about-title-main,
.about .about-title-outline {
  display: block;

  width: 100%;
  margin: 0;
  padding: 0;

  transform: none;
}

.about .about-title-main {
  color: var(--text-primary);

  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.about .about-title-outline {
  color: transparent;

  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1.08;

  /* Less negative spacing prevents outlined letters colliding */
  letter-spacing: -0.025em;

  -webkit-text-stroke: 2px var(--tertiary);
  paint-order: stroke fill;

  white-space: normal;
  overflow: visible;
}

/* ========================================
   ABOUT TITLE — FINAL STYLE
======================================== */

/* Main “Development with” text */
.about .about-title,
.about h2 {
  color: var(--text-primary) !important;
}

/* Reset the first line back to standard white */
.about .about-title-main {
  display: block !important;

  width: auto !important;
  padding: 0 !important;

  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-text-stroke: 0 !important;

  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;

  filter: none !important;
}

/* Remove any underline accidentally added to the first line */
.about .about-title-main::after {
  display: none !important;
  content: none !important;
}

/* Gradient only on “visual personality.” */
.about .about-title-outline,
.about h2 > span:not(.about-title-main) {
  position: relative;
  display: block !important;

  width: fit-content !important;
  max-width: 100%;

  margin-top: 0.12em;
  padding-bottom: 0.18em;

  color: var(--primary) !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0 !important;

  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--secondary) 52%,
    var(--tertiary) 100%
  ) !important;

  background-clip: text !important;
  -webkit-background-clip: text !important;

  filter: drop-shadow(
    0 0 24px rgba(124, 92, 255, 0.2)
  );
}

/* Full-width underline beneath the complete phrase */
.about .about-title-outline::after,
.about h2 > span:not(.about-title-main)::after {
  content: "" !important;

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  display: block !important;

  width: 100% !important;
  height: 5px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--tertiary)
  ) !important;

  box-shadow: 0 0 18px rgba(53, 217, 255, 0.25);
}

@media (max-width: 780px) {
  .about .about-title-outline,
  .about h2 > span:not(.about-title-main) {
    padding-bottom: 0.2em;
  }

  .about .about-title-outline::after,
  .about h2 > span:not(.about-title-main)::after {
    height: 3px;
  }
}

/* Header colours when menu opens */

/* Normal closed menu */
.site-header {
  color: var(--text-primary);
}

/* Open menu */
body.menu-open .site-header {
  color: var(--background) !important;
  mix-blend-mode: normal !important;
}

/* Make every header element inherit the dark colour */
body.menu-open .site-header .brand,
body.menu-open .site-header .brand-circle,
body.menu-open .site-header .brand-status,
body.menu-open .site-header .menu-toggle,
body.menu-open .site-header .menu-icon i {
  color: var(--background) !important;
  border-color: var(--background) !important;
}

body.menu-open .site-header .menu-icon i {
  background: var(--background) !important;
}