:root {
  --bg: #070a12;
  --bg-soft: #0a0f1b;
  --panel: #0e1421;
  --panel-2: #111927;
  --text: #f7f9fd;
  --muted: #fafbfd;
  --muted-2: #fdfeff;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --blue: #55e6ff;
  --purple: #5f49b8;
  --green: #61e7aa;
  --orange: #ffb66b;
  --max: 1160px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% -10%,
    rgba(50, 132, 127, 0.818),
    transparent 43%
  );
  z-index: -3;
}

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

button {
  font: inherit;
}

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 100;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--green));
  box-shadow: 0 0 14px rgba(85, 230, 255, 0.6);
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -2;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.1;
}

.glow-a {
  background: var(--blue);
  top: -220px;
  left: -140px;
}

.glow-b {
  background: var(--purple);
  top: 28%;
  right: -260px;
}

.glow-c {
  background: var(--green);
  bottom: -320px;
  left: 30%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(43, 149, 149, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: 0.25s;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(7, 10, 18, 0.86);
}

.nav-wrap {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--blue);
  border: 1px solid rgba(0, 212, 250, 0.979);
  background: linear-gradient(
    135deg,
    rgba(39, 175, 199, 0),
    rgba(155, 130, 255, 0)
  );
  box-shadow: inset 0 0 18px rgba(85, 230, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #f9fafc;
  font-size: 13px;
}

.nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: 0.25s;
}

.nav a:hover,
.nav a.active {
  color: #ddf503;
}

.nav a.active:after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-resume {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.02)
  );
  transition: 0.2s;
}

.nav-resume:hover {
  border-color: rgba(2, 212, 249, 0.833);
  color: var(--blue);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0);
  border-radius: 11px;
  width: 40px;
  height: 40px;
  padding: 9px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: #fff201;
  transition: 0.2s;
}

.hero {
  position: relative;
  padding: clamp(78px, 10vw, 112px) 0 82px;
}

.hero-orbit {
  position: absolute;
  right: 2%;
  top: 92px;
  width: 230px;
  height: 230px;
  border: 1px solid rgb(252, 0, 252);
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
}

.hero-orbit:before,
.hero-orbit:after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgb(50, 1, 247);
  border-radius: 50%;
}

.hero-orbit:after {
  inset: 70px;
  border-color: rgb(6, 255, 247);
}

.hero-orbit span,
.hero-orbit i,
.hero-orbit b {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.hero-orbit span {
  width: 8px;
  height: 8px;
  background: var(--blue);
  top: 35px;
  right: 22px;
  box-shadow: 0 0 20px var(--blue);
}

.hero-orbit i {
  width: 6px;
  height: 6px;
  background: var(--purple);
  left: 32px;
  bottom: 42px;
  box-shadow: 0 0 16px var(--purple);
}

.hero-orbit b {
  width: 7px;
  height: 7px;
  background: var(--green);
  right: 62px;
  bottom: 14px;
  box-shadow: 0 0 18px var(--green);
}

.eyebrow,
.kicker {
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #f8f8f8;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 30px rgba(85, 230, 255, 0.03);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(97, 231, 170, 0.85);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.01;
  letter-spacing: -0.055em;
  max-width: 950px;
  margin: 25px 0 22px;
  position: relative;
  z-index: 1;
}

h1 span {
  background: linear-gradient(110deg, #fff 0%, var(--blue) 38%, #b28fff 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

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

.btn-primary {
  background: linear-gradient(110deg, #f8fbff, #dfefff);
  color: #070a12;
  border-color: #175cc3;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.927);
}

.btn-primary:hover {
  background: linear-gradient(110deg, var(--blue), #b9f7ff);
  border-color: var(--blue);
  box-shadow: 0 12px 38px rgba(43, 153, 172, 0.15);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: rgba(154, 130, 255, 0.5);
  box-shadow: 0 10px 30px rgba(154, 130, 255, 0.08);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 780px;
  margin-top: 62px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  gap: 20px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-meta strong {
  font-family: "Space Grotesk";
  font-size: 27px;
  background: linear-gradient(100deg, #edf50c, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta span {
  color: #fdfeff;
  font-size: 12px;
  margin-top: 2px;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  margin: 8px 0 0;
}

.section-head > p {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.project {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.789),
    rgb(0, 0, 0)
  );
  overflow: hidden;
  margin-top: 18px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.823);
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.project:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple), transparent);
  opacity: 0.7;
}

.project-client:before {
  background: linear-gradient(90deg, var(--green), var(--blue), transparent);
}

.project:hover {
  border-color: rgba(20, 185, 214, 0.985);
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fefeff;
  font-size: 11px;
  margin: 0 7px 5px 0;
}

.pill.featured {
  color: var(--blue);
  border-color: rgba(211, 202, 21, 0.774);
  background: rgb(0, 0, 0);
}

.pill.client {
  color: #f8faf9;
  border-color: rgba(0, 0, 0, 0.744);
  background: rgba(237, 158, 0, 0.775);
}

.live {
  font-size: 11px;
  color: #d3e50e;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.live i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgb(0, 255, 140);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 35px;
  padding: 28px 24px 26px;
}

.project-info {
  min-width: 0;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 3px;
}

.project-title-row > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-index {
  font: 700 10px "Space Grotesk";
  color: #ffdd00;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 7px;
  background: rgb(189, 16, 16);
  flex: 0 0 auto;
}

.project h3 {
  font-size: clamp(30px, 3.2vw, 39px);
  letter-spacing: -0.045em;
  margin: 0;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.project h4 {
  font-size: 15px;
  color: #f9f9f9;
  margin: 5px 0 15px;
  font-weight: 600;
}

.project p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 650px;
  margin: 0;
}

.project-live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(11, 197, 230, 0.911);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.1),
    rgba(84, 60, 179, 0.829)
  );
  color: #21c0d2;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s;
  box-shadow: 0 7px 22px rgba(85, 230, 255, 0.05);
}

.project-live-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(24, 169, 195, 0.868),
    rgba(60, 26, 195, 0.807)
  );
  border-color: rgb(255, 255, 255);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(18, 185, 214, 0.1);
}

.client-btn {
  border-color: rgba(46, 219, 141, 0.932);
  background: linear-gradient(
    135deg,
    rgba(97, 231, 170, 0.1),
    rgba(85, 230, 255, 0.06)
  );
  color: #d5fae9;
}

.client-btn:hover {
  border-color: rgba(14, 233, 135, 0.984);
  background: linear-gradient(
    135deg,
    rgba(27, 200, 122, 0.941),
    rgba(13, 189, 220, 0.967)
  );
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.chips span {
  font-size: 11px;
  color: #fefefe;
  border: 1px solid var(--line);
  background: rgba(209, 27, 27, 0.914);
  padding: 5px 9px;
  border-radius: 7px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.feature-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(147, 133, 28, 0.648);
  padding: 7px;
  min-width: 0;
}

.feature {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature:last-child {
  border-bottom: 0;
}

.feature b {
  font-size: 13px;
}

.feature span {
  font-size: 12px;
  color: #ffffff;
  line-height: 1.5;
}

.feature b:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: middle;
  margin-right: 8px;
  box-shadow: 0 0 9px rgba(3, 214, 251, 0.7);
}

.project-client .feature b:before {
  background: var(--green);
  box-shadow: 0 0 9px rgb(8, 230, 130);
}

.project-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: rgba(124, 20, 184, 0.904);
  font-size: 11px;
  color: #feffff;
}

.project-bottom > span {
  min-width: 0;
}

.arrow-link {
  color: #f39304;
  font-weight: 700;
  white-space: nowrap;
}

.arrow-link:hover {
  color: var(--blue);
}

.project-client {
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.581),
    rgba(0, 0, 0, 0.686)
  );
}

.compact .feature {
  padding: 12px 14px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  border: 1px solid var(--line);
  background: rgba(126, 112, 68, 0.793);
  border-radius: 18px;
  padding: 24px;
  min-height: 205px;
  position: relative;
  overflow: hidden;
  transition: 0.25s;
}

.skill-card:after {
  content: "";
  position: absolute;
  right: -40px;
  top: -45px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  filter: blur(2px);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent), transparent 70%);
}

.skill-blue {
  --accent: var(--blue);
}

.skill-purple {
  --accent: var(--purple);
}

.skill-green {
  --accent: var(--green);
}

.skill-orange {
  --accent: var(--orange);
}

.skill-num {
  font: 700 11px "Space Grotesk";
  color: #ffffff;
}

.skill-card h3 {
  font-size: 23px;
  margin: 19px 0 7px;
}

.skill-card p {
  font-size: 13px;
  color: var(--muted);
  max-width: 450px;
  line-height: 1.7;
  margin: 0;
}

.skill-card .chips {
  margin-top: 17px;
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(0, 0, 0);
  overflow: hidden;
}

.about-copy {
  padding: 34px;
}

.about-copy h2 {
  font-size: 40px;
  letter-spacing: -0.04em;
  margin: 9px 0 15px;
}

.about-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 670px;
  margin: 0 0 12px;
}

.about-facts {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.about-facts div {
  padding: 30px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.about-facts div:last-child {
  border-bottom: 0;
}

.about-facts span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fafcff;
}

.about-facts strong {
  font: 600 20px "Space Grotesk";
  margin: 5px 0;
}

.about-facts small {
  color: #d4d6d9;
  font-size: 12px;
  line-height: 1.5;
}

.contact-card {
  border: 1px solid rgba(85, 230, 255, 0.16);
  border-radius: 24px;
  padding: 42px;
  background:
    radial-gradient(
      circle at 82% 8%,
      rgba(40, 105, 116, 0.616),
      transparent 32%
    ),
    radial-gradient(
      circle at 18% 100%,
      rgba(66, 39, 172, 0.566),
      transparent 30%
    ),
    rgba(255, 255, 255, 0.211);
}

.contact-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.contact-card h2 {
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.045em;
  margin: 8px 0 10px;
}

.contact-heading p {
  color: var(--muted);
  font-size: 14px;
  max-width: 650px;
  margin: 0;
}

.contact-spark {
  font-size: 45px;
  color: var(--blue);
  opacity: 0.75;
  padding: 4px 10px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(49, 165, 171, 0.66);
  transition: 0.2s;
}

.contact-links a:hover {
  border-color: rgb(0, 243, 202);
  transform: translateY(-2px);
  background: rgba(35, 140, 110, 0.952);
}

.contact-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 10px;
  background: #d89f0f;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #f4f4f4;
}

.contact-links span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.contact-links small {
  font-size: 10px;
  color: #e6d707;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-links b {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-links em {
  font-style: normal;
  margin-left: auto;
  color: #ff0066;
  flex: 0 0 auto;
}

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.footer > div:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.footer b {
  font-family: "Space Grotesk";
}

.footer span {
  color: #c7d3e6;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #feffff;
  font-size: 12px;
}

.footer-links a:hover {
  color: #fff;
}

.footer p {
  grid-column: 1/-1;
  color: #fffefe;
  font-size: 11px;
  margin: 5px 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* Large tablets / small laptops */
@media (max-width: 1020px) {
  .wrap {
    width: min(var(--max), calc(100% - 40px));
  }

  .nav {
    gap: 20px;
  }

  .hero-orbit {
    right: -40px;
    opacity: 0.5;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr);
    gap: 24px;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (max-width: 900px) {
  :root {
    --header: 68px;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .site-header.menu-open .nav {
    display: flex;
    position: absolute;
    top: calc(var(--header) - 1px);
    left: 0;
    right: 0;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  .site-header.menu-open .nav a {
    padding: 13px 12px;
    border-radius: 10px;
  }

  .site-header.menu-open .nav a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .site-header.menu-open .nav a:after {
    display: none;
  }

  .site-header.menu-open .menu-btn span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.menu-open .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-btn span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding-top: 78px;
  }

  .hero-orbit {
    right: -90px;
    top: 80px;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .about-facts {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .about-facts div {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .about-facts div:last-child {
    border-right: 0;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .nav-wrap {
    gap: 10px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-resume {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero {
    padding: 64px 0 50px;
  }

  .hero-orbit {
    width: 180px;
    height: 180px;
    right: -105px;
    top: 56px;
    opacity: 0.35;
  }

  h1 {
    font-size: clamp(40px, 12vw, 60px);
    letter-spacing: -0.06em;
    margin-top: 22px;
  }

  .desktop {
    display: none;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .hero-meta {
    margin-top: 44px;
    gap: 17px;
  }

  .hero-meta strong {
    font-size: 22px;
  }

  .hero-meta span {
    font-size: 11px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 20px;
  }

  .section-head > p {
    margin-top: 10px;
    line-height: 1.7;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .project-top {
    padding: 18px 17px 0;
    align-items: flex-start;
  }

  .project-grid {
    padding: 23px 17px 20px;
    gap: 20px;
  }

  .project-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .project-title-row > div {
    width: 100%;
    max-width: 100%;
  }

  .project h3 {
    font-size: clamp(28px, 9vw, 34px);
  }

  .project-live-btn {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
  }

  .project h4 {
    font-size: 14px;
    line-height: 1.5;
  }

  .project p {
    font-size: 13.5px;
    line-height: 1.75;
  }

  .feature-panel {
    border-radius: 14px;
  }

  .feature {
    padding: 14px;
  }

  .project-bottom {
    padding: 15px 17px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .project-bottom .arrow-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
  }

  .chips {
    gap: 6px;
  }

  .chips span {
    font-size: 10.5px;
    padding: 5px 8px;
  }

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

  .skill-card {
    min-height: 0;
    padding: 21px;
  }

  .skill-card h3 {
    font-size: 21px;
  }

  .about-copy {
    padding: 26px 20px;
  }

  .about-copy h2 {
    font-size: 31px;
  }

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

  .about-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 20px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .contact-heading {
    display: block;
  }

  .contact-spark {
    display: none;
  }

  .contact-links {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .contact-links a {
    padding: 12px;
  }

  .contact-links b {
    font-size: 11.5px;
  }

  .footer {
    grid-template-columns: 1fr;
    padding-bottom: 30px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 14px;
  }

  .footer p {
    grid-column: auto;
  }

  .glow {
    width: 320px;
    height: 320px;
  }
}

/* Very small phones: keep everything inside the viewport */
@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .nav-resume {
    padding: 7px 9px;
    font-size: 11px;
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .menu-btn {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 55px;
  }

  .hero-meta {
    gap: 13px;
  }

  .hero-meta strong {
    font-size: 20px;
  }

  .project-top {
    padding-inline: 14px;
  }

  .project-grid {
    padding-inline: 14px;
  }

  .project-bottom {
    padding-inline: 14px;
  }

  .project h3 {
    font-size: 27px;
  }

  .project-index {
    padding: 4px 6px;
  }

  .project-title-row > div {
    gap: 9px;
  }

  .project-live-btn {
    font-size: 11px;
  }

  .about-copy {
    padding-inline: 18px;
  }

  .contact-card {
    padding-inline: 17px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .contact-links a,
  .project,
  .skill-card {
    transition: none;
  }

  .hero-orbit {
    display: none;
  }
}
