:root {
  color-scheme: dark;
  --ink: #f5f7fb;
  --paper: #020617;
  --surface: #07142c;
  --surface-strong: #0b1f44;
  --muted: #d4deec;
  --mint: #35e2d0;
  --coral: #ff746b;
  --amber: #ffd166;
  --line: rgb(245 247 251 / 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgb(37 99 235 / 0.36), transparent 32rem),
    radial-gradient(circle at 78% 8%, rgb(56 189 248 / 0.24), transparent 26rem),
    radial-gradient(circle at 50% 78%, rgb(30 64 175 / 0.34), transparent 30rem),
    radial-gradient(circle at 92% 84%, rgb(53 226 208 / 0.14), transparent 22rem),
    linear-gradient(180deg, #01040d 0%, #04112a 44%, #020617 100%);
}

.scene-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-layer::after {
  position: fixed;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 75% 35%, rgb(37 99 235 / 0.08), transparent 28rem),
    linear-gradient(90deg, rgb(1 4 13 / 0.86) 0%, rgb(2 8 23 / 0.44) 48%, rgb(2 8 23 / 0.2) 100%);
}

.nav-link {
  position: relative;
  color: rgb(245 247 251 / 0.82);
  transition: color 180ms ease;
}

.nav-link:hover {
  color: white;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--coral);
  transition: transform 180ms ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border-radius: 999px;
  background: white;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #070a12;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--coral);
  color: white;
}

.top-contact-strip {
  display: flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-bottom: 1px solid rgb(245 247 251 / 0.1);
  padding: 0.35rem 1rem;
  background: rgb(255 255 255 / 0.055);
  font-size: clamp(0.68rem, 2.4vw, 0.8rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  flex-wrap: wrap;
}

.top-contact-strip a {
  border: 1px solid rgb(245 247 251 / 0.16);
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  background: rgb(255 255 255 / 0.07);
  color: rgb(245 247 251 / 0.88);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.top-contact-strip a:hover {
  border-color: rgb(53 226 208 / 0.48);
  background: rgb(53 226 208 / 0.1);
  color: white;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 0 20px rgb(255 209 102 / 0.28);
}

.eyebrow::before {
  width: 2rem;
  height: 2px;
  content: "";
  background: currentColor;
}

.btn-primary,
.btn-secondary,
.btn-light,
.btn-outline-light {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #ff9a76);
  color: white;
  box-shadow: 0 18px 48px rgb(255 116 107 / 0.42);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-outline-light:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgb(245 247 251 / 0.28);
  background: rgb(245 247 251 / 0.11);
  color: white;
  backdrop-filter: blur(16px);
}

.btn-light {
  background: white;
  color: #070a12;
}

.btn-outline-light {
  border: 1px solid rgb(255 255 255 / 0.28);
  color: white;
}

.hero-panel {
  width: min(100%, 24rem);
  border: 1px solid rgb(245 247 251 / 0.26);
  border-radius: 8px;
  justify-self: start;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgb(20 31 50 / 0.9), rgb(7 12 24 / 0.88));
  box-shadow:
    0 28px 80px rgb(0 0 0 / 0.46),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
  backdrop-filter: blur(20px);
}

.hero-copy {
  color: rgb(245 247 251 / 0.88);
}

.panel-label {
  color: rgb(245 247 251 / 0.68);
}

.avatar {
  width: 5rem;
  height: 5rem;
  border: 3px solid rgb(255 255 255 / 0.86);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.3);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.stat-grid div,
.skill-card {
  border: 1px solid rgb(245 247 251 / 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.055));
  backdrop-filter: blur(18px);
}

.stat-grid div {
  padding: 0.9rem;
}

.stat-grid span,
.skill-card span {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(245 247 251 / 0.68);
}

.stat-grid strong,
.skill-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.section-band {
  position: relative;
  z-index: 1;
}

.section-dark-muted {
  background:
    radial-gradient(circle at 10% 8%, rgb(37 99 235 / 0.24), transparent 24rem),
    radial-gradient(circle at 86% 62%, rgb(56 189 248 / 0.12), transparent 20rem),
    linear-gradient(180deg, rgb(3 15 38 / 0.96), rgb(1 6 18 / 0.98)),
    var(--paper);
}

.section-dark-strong {
  background:
    radial-gradient(circle at 82% 16%, rgb(37 99 235 / 0.28), transparent 22rem),
    radial-gradient(circle at 20% 80%, rgb(56 189 248 / 0.16), transparent 22rem),
    linear-gradient(180deg, #020a1c, #01030a);
}

.section-heading h2 {
  margin-top: 0.65rem;
  max-width: 52rem;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.03;
  color: white;
}

.skill-card {
  min-height: 8.5rem;
  padding: 1.25rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgb(53 226 208 / 0.68);
  box-shadow:
    0 18px 52px rgb(0 0 0 / 0.34),
    0 0 26px rgb(53 226 208 / 0.12);
}

.project-card {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid rgb(245 247 251 / 0.24);
  border-radius: 8px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(145deg, rgb(25 37 61 / 0.96), rgb(8 14 27 / 0.96));
  box-shadow:
    0 26px 80px rgb(0 0 0 / 0.46),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
  backdrop-filter: blur(22px);
  position: relative;
  isolation: isolate;
}

.project-card::before,
.project-card::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.project-card::before {
  top: 1rem;
  left: 1.2rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--mint);
  box-shadow:
    4rem 2rem 0 rgb(255 209 102 / 0.8),
    8rem 0.2rem 0 rgb(255 116 107 / 0.85),
    12rem 3rem 0 rgb(245 247 251 / 0.72);
  animation: sparkleFloat 2.8s ease-in-out infinite;
}

.project-card::after {
  right: 1.2rem;
  bottom: 1.2rem;
  width: 0.34rem;
  height: 0.34rem;
  background: white;
  box-shadow:
    -3rem -1.2rem 0 rgb(53 226 208 / 0.72),
    -8rem -0.3rem 0 rgb(255 209 102 / 0.74),
    -12rem -2.6rem 0 rgb(255 116 107 / 0.78);
  animation: sparkleFloat 3.4s ease-in-out infinite reverse;
}

.project-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-list .project-card {
  margin-top: 0;
}

.project-content {
  display: grid;
  min-height: 100%;
  gap: 1.4rem;
}

.project-topline {
  display: grid;
  gap: 1.2rem;
}

.project-title-block {
  min-width: 0;
}

.project-kicker {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.project-card h3 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.animated-project-name {
  display: inline-block;
  color: white;
  text-shadow:
    0 0 18px rgb(53 226 208 / 0.18),
    0 0 36px rgb(255 116 107 / 0.16);
  animation: titlePulse 3.2s ease-in-out infinite;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: start;
  justify-content: flex-start;
}

.project-description {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgb(245 247 251 / 0.84);
  line-height: 1.75;
}

.project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-self: end;
  padding-top: 0.6rem;
}

.project-specs span {
  border: 1px solid rgb(53 226 208 / 0.34);
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  background: rgb(53 226 208 / 0.09);
  color: rgb(245 247 251 / 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgb(53 226 208 / 0.08);
}

.project-visual {
  position: relative;
  min-height: 18rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 35%, rgb(255 255 255 / 0.22), transparent 9rem),
    linear-gradient(135deg, rgb(255 209 102 / 0.88), rgb(53 226 208 / 0.78)),
    #101725;
  overflow: hidden;
}

.project-visual::before {
  position: absolute;
  inset: 1.2rem;
  border: 1px solid rgb(255 255 255 / 0.42);
  border-radius: 8px;
  content: "";
}

.plate {
  position: absolute;
  top: 4.2rem;
  left: 50%;
  width: 12rem;
  height: 12rem;
  transform: translateX(-50%);
  border: 18px solid rgb(255 255 255 / 0.9);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 28px 54px rgb(0 0 0 / 0.28);
}

.order-card {
  position: absolute;
  width: 11rem;
  height: 5rem;
  border-radius: 8px;
  background: rgb(7 10 18 / 0.68);
  box-shadow: 0 16px 36px rgb(0 0 0 / 0.26);
  backdrop-filter: blur(10px);
}

.order-card::before,
.order-card::after {
  position: absolute;
  left: 1rem;
  height: 0.55rem;
  border-radius: 999px;
  content: "";
  background: rgb(255 255 255 / 0.25);
}

.order-card::before {
  top: 1.2rem;
  width: 7rem;
}

.order-card::after {
  top: 2.45rem;
  width: 5rem;
}

.order-card.one {
  top: 2rem;
  left: 1.5rem;
  transform: rotate(-8deg);
}

.order-card.two {
  right: 1.5rem;
  bottom: 2rem;
  transform: rotate(7deg);
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15rem;
  height: 15rem;
  transform: translate(-50%, -50%);
  border: 2px dashed rgb(255 255 255 / 0.55);
  border-radius: 50%;
}

.orbit-ring::after {
  position: absolute;
  top: 1.2rem;
  left: 2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  content: "";
  background: #070a12;
  box-shadow: 0 0 0 0.5rem rgb(255 255 255 / 0.35);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  max-width: 34rem;
}

.contact-list a {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgb(245 247 251 / 0.16);
  border-radius: 8px;
  padding: 1rem;
  background: rgb(255 255 255 / 0.06);
  color: white;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.contact-list a:hover {
  transform: translateY(-2px);
  border-color: rgb(53 226 208 / 0.5);
  background: rgb(255 255 255 / 0.1);
}

.contact-list span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(245 247 251 / 0.62);
}

.contact-list strong {
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  }

  .hero-panel {
    align-self: end;
    justify-self: end;
    margin-bottom: 7vh;
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 32rem);
    align-items: center;
  }

  .project-topline {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .project-actions {
    justify-content: flex-end;
    min-width: 15rem;
  }
}

@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary,
  .btn-light,
  .btn-outline-light {
    width: 100%;
  }

  .hero-panel {
    margin-top: 0.75rem;
  }
}

@keyframes titlePulse {
  0%,
  100% {
    transform: translateX(0);
    filter: brightness(1);
  }

  50% {
    transform: translateX(0.35rem);
    filter: brightness(1.22);
  }
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.62;
  }

  50% {
    transform: translateY(-0.45rem) scale(1.28);
    opacity: 1;
  }
}
