:root {
  --bg: #0a0e14;
  --bg-elev: #0e131c;
  --card: #131a24;
  --card-2: #161e2a;
  --text: #e8edf4;
  --muted: #8a96a8;
  --accent: #22e3d6;
  --accent-2: #4f9cf9;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 78rem;
  --header-h: 73px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Lock scroll when the mobile drawer is open */
body.menu-open {
  overflow: hidden;
}

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      600px 400px at 80% -5%,
      rgba(34, 227, 214, 0.12),
      transparent 70%
    ),
    radial-gradient(
      500px 400px at 0% 20%,
      rgba(79, 156, 249, 0.1),
      transparent 70%
    );
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    black,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    black,
    transparent 75%
  );
  opacity: 0.6;
}

a {
  color: inherit;
  text-decoration: none;
}
li {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: #04201d;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section__head .section__title {
  margin-top: 0.9rem;
}
.section__head p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__head--center .eyebrow {
  justify-content: center;
}
.section__head--center p {
  margin-inline: auto;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
  font-size: 0.95rem;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn--primary {
  background: var(--accent);
  color: #04201d;
  box-shadow: 0 8px 24px -8px rgba(34, 227, 214, 0.6);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -8px rgba(34, 227, 214, 0.7);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* ---------- HEADER / - ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.header.scrolled {
  background: rgba(10, 14, 20, 0.72);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}
.logo__badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}
.logo__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.08;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}
.nav__cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--accent);
  color: #04201d;
}

/* Burger — hidden on desktop, shown via media.css */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 70;
  flex-shrink: 0;
}
.burger span {
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
body.menu-open .burger span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .burger span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Backdrop behind the mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 45;
}
.nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
  max-width: 100%;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero__title .name {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: var(--muted);
  margin-top: 1rem;
  min-height: 1.6em;
}
.hero__role .typed {
  color: var(--accent);
}
.hero__role .cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.hero__text {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 1.6rem;
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero__stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2.8rem;
  flex-wrap: wrap;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}
.stat__label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero code card (signature) */
.hero__code {
  min-width: 0;
}
.code-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.code-card:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.code-card__bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.code-card__bar i:nth-child(1) {
  background: #ff5f57;
}
.code-card__bar i:nth-child(2) {
  background: #febc2e;
}
.code-card__bar i:nth-child(3) {
  background: #28c840;
}
.code-card__file {
  margin-left: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.code-card pre {
  margin: 0;
  padding: 1.3rem 1.4rem 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.6vw, 0.86rem);
  line-height: 1.85;
  overflow-x: auto;
}
.c-key {
  color: var(--accent-2);
}
.c-str {
  color: var(--accent);
}
.c-prop {
  color: #e8edf4;
}
.c-com {
  color: #5b6779;
}
.c-bool {
  color: #f0883e;
}
.c-punc {
  color: #8a96a8;
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.about__text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.about__text p:last-child {
  margin-bottom: 0;
}
.about__text strong {
  color: var(--text);
  font-weight: 600;
}
.about__text span {
  color: var(--accent);
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 227, 214, 0.5);
  box-shadow: 0 0 24px -8px rgba(34, 227, 214, 0.4);
}
.feature__ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  padding: 6px;
  display: grid;
  place-items: center;
  background: rgba(34, 227, 214, 0.1);
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- SKILLS ---------- */
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.skill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.skill:hover {
  border-color: rgba(34, 227, 214, 0.45);
  box-shadow: 0 0 24px -10px rgba(34, 227, 214, 0.4);
}
.skill__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.skill__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.skill__name .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid rgba(34, 227, 214, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}
.skill__pct {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.skill p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal--visible .bar span {
  width: var(--w);
}
.also {
  margin-top: 3rem;
  text-align: center;
}
.also h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-weight: 500;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  transition: all 0.2s ease;
}
.chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- PROJECTS ---------- */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}
.project {
  background: var(--card);
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 227, 214, 0.5);
  box-shadow: 0 26px 50px -24px rgba(34, 227, 214, 0.45);
}
.project__top {
  position: relative;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
}
.browser-url {
  margin-left: 0.7rem;
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project__visual {
  height: 150px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      120% 120% at 50% 0%,
      rgba(34, 227, 214, 0.16),
      transparent 60%
    ),
    linear-gradient(160deg, var(--card-2), var(--card));
  border-bottom: 1px solid var(--line);
}
.project__visual .mono-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  padding: 0 1rem;
}
.project__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.project__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(34, 227, 214, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 7px;
}

.project__badge .dot {
  margin-left: 9px;
  display: inline-block;
}

.project__body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.project__body > p {
  color: var(--muted);
  font-size: 0.96rem;
}
.project__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.2rem 0;
}
.project__features li {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.project__features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--accent);
}
.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.tech span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.project__links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
}
.project__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  transition: gap 0.2s ease;
  -webkit-transition: gap 0.2s ease;
  -moz-transition: gap 0.2s ease;
  -ms-transition: gap 0.2s ease;
  -o-transition: gap 0.2s ease;
}

.project__links a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.project__links a:hover {
  gap: 0.7rem;
}
.project__links svg {
  width: 16px;
  height: 16px;
}

/* ---------- CONTACT ---------- */
.contact__card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow);
}

.contact__left {
}

.contact__left h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.contact__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}
.contact__ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(34, 227, 214, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}
.contact__row a,
.contact__row p {
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}
.contact__row a:hover {
  color: var(--accent);
}
.socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s ease;
}
.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.contact__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact__right h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.contact__right h2 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact__right p {
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.contact__btn {
  align-self: flex-start;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer span {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- SCROLL TOP ---------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #04201d;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 24px -8px rgba(34, 227, 214, 0.6);
  z-index: 40;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  transform: translateY(-3px);
}

/* ---------- REVEAL (bidirectional) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.from-left {
  transform: translateX(-50px);
}
.reveal.from-right {
  transform: translateX(50px);
}
.reveal.reveal--visible {
  opacity: 1;
  transform: translate(0, 0);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  text-align: left;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #5b6779;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(34, 227, 214, 0.04);
  box-shadow: 0 0 0 3px rgba(34, 227, 214, 0.12);
}
.contact__submit {
  margin-top: 0.4rem;
  padding: 1rem;
}
.contact__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
  margin: 0;
}
.form-status.success {
  color: #34d399;
}
.form-status.error {
  color: #ff6b6b;
}
