:root {
  --bg: #0b0f0d;
  --bg-elevated: #101613;
  --bg-soft: #151d19;
  --surface-border: rgba(120, 255, 180, 0.14);

  --text-main: #e6f1eb;
  --text-muted: #9fb3a7;

  --accent: #52ff9a;
  --accent-strong: #2dff84;
  --accent-soft: rgba(82, 255, 154, 0.14);

  --danger: #ff9b9b;
  --warning: #ffd479;

  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.25);
  --glow-soft:
    0 0 0 1px rgba(82, 255, 154, 0.18),
    0 0 18px rgba(82, 255, 154, 0.12);
  --glow-strong:
    0 0 0 1px rgba(82, 255, 154, 0.28),
    0 0 24px rgba(82, 255, 154, 0.2);

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --container-width: 1100px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.25s ease;
}

/* Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background:
    radial-gradient(circle at top right, rgba(82, 255, 154, 0.06), transparent 25%),
    linear-gradient(180deg, #0a0f0d 0%, #0d1311 100%);
}

body.menu-is-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a,
button,
input,
textarea {
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid rgba(82, 255, 154, 0.45);
  outline-offset: 3px;
}

.container {
  width: min(var(--container-width), 92%);
  margin: 0 auto;
}

.hero,
.page-section,
.featured-projects {
  padding: 2.8rem 0;
}

.hero h1,
.page-section h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero p,
.page-section p {
  color: var(--text-muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1400;
  background: rgba(11, 15, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(82, 255, 154, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.site-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.logo:hover,
.logo:focus-visible {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(82, 255, 154, 0.35);
}

.logo-accent {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(82, 255, 154, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
  .logo {
    animation: logoPulse 3s ease-in-out infinite;
  }
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(82, 255, 154, 0);
  }

  50% {
    transform: scale(1.05);
    text-shadow: 0 0 14px rgba(82, 255, 154, 0.35);
  }

  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(82, 255, 154, 0);
  }
}

/* Navigation */

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(82, 255, 154, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(82, 255, 154, 0.35);
  box-shadow: var(--glow-soft);
}

.menu-toggle-bar {
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background-color: var(--text-main);
}

.menu-overlay {
  display: none;
}

.menu-overlay.overlay-visible {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(3, 6, 5, 0.6);
}

.nav-links {
  display: none;
  width: 100%;
  flex-basis: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links.nav-open {
  position: relative;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  flex-basis: 100%;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: rgba(16, 22, 19, 0.98);
  box-shadow: var(--shadow-soft), var(--glow-soft);
}

.nav-links a {
  display: block;
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: rgba(82, 255, 154, 0.08);
  color: var(--accent);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: rgba(82, 255, 154, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(82, 255, 154, 0.2),
    0 0 12px rgba(82, 255, 154, 0.08);
}

/* Shared surfaces */

.content-panel,
.contact-panel,
.about-hero-content,
.about-side-panel-inner,
.hero-content,
.hero-panel-inner,
.info-card,
.skill-panel,
.cta-panel {
  padding: 1.5rem;
  border: 1px solid rgba(82, 255, 154, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(16, 22, 19, 0.95), rgba(14, 19, 17, 0.95));
  box-shadow: var(--shadow-soft);
}

.panel-label {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Buttons */

.button-link,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  text-decoration: none;
}

.button-link {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(82, 255, 154, 0.22);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(82, 255, 154, 0.16), rgba(82, 255, 154, 0.08));
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(82, 255, 154, 0.08);
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(82, 255, 154, 0.38);
  box-shadow: var(--glow-strong);
}

.button-secondary {
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: rgba(82, 255, 154, 0.2);
  color: var(--accent);
}

/* Generic layout */

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  max-width: 48ch;
  line-height: 1.15;
  color: var(--text-main);
}

.section-intro {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-heading-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.section-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.section-link:hover,
.section-link:focus-visible {
  text-shadow: 0 0 10px rgba(82, 255, 154, 0.28);
}

.info-grid,
.skills-grid,
.project-grid,
.about-story-grid,
.contact-layout,
.hero-grid,
.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.info-card h3,
.skill-panel h3,
.content-panel h2,
.contact-panel h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.info-card p,
.skill-panel p,
.content-panel p,
.contact-panel p,
.hero-panel p,
.cta-panel p {
  color: var(--text-muted);
}

/* Hero */

.hero-section {
  padding-top: 3.5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-main,
.hero-focus-panel {
  min-height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  max-width: 11ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-intro,
.hero-text {
  max-width: 58ch;
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
}

.hero-primary-button,
.hero-secondary-button {
  min-height: 52px;
}

.hero-primary-button {
  margin-top: 0;
}

.hero-panel {
  display: flex;
  min-height: 100%;
}

.hero-focus-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
}

.hero-panel-title {
  margin: 0 0 0.5rem;
  max-width: 14ch;
  color: var(--text-main);
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-panel-text {
  margin: 0 0 1.25rem;
  max-width: 34ch;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.hero-focus-card {
  padding: 1rem;
  border: 1px solid rgba(82, 255, 154, 0.08);
  border-radius: 16px;
  background: rgba(82, 255, 154, 0.05);
}

.hero-focus-card p {
  margin: 0;
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-panel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-panel-inner::before,
.cta-panel::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background: radial-gradient(circle, rgba(82, 255, 154, 0.12), transparent 70%);
}

.hero-panel-inner::before {
  inset: auto -40px -40px auto;
  width: 140px;
  height: 140px;
}

.hero-highlights {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(82, 255, 154, 0.08);
  border-radius: 14px;
  background: rgba(82, 255, 154, 0.05);
  color: var(--text-main);
}

.hero-meta-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-meta-item {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(82, 255, 154, 0.08);
}

.hero-meta-title {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-meta-value {
  display: block;
  color: var(--text-main);
  font-weight: 600;
}

.hero-accent {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(82, 255, 154, 0.18);
}

.landing-hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

/* Cards and sections */

.featured-grid {
  align-items: stretch;
}

.featured-card {
  min-height: 100%;
}

.profile-facts {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(82, 255, 154, 0.08);
}

.profile-facts li:first-child {
  padding-top: 0;
  border-top: none;
}

.profile-facts span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-facts strong {
  color: var(--text-main);
  font-size: 1rem;
}

/* Projects */

.project-grid {
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(82, 255, 154, 0.28);
  box-shadow: var(--shadow-soft), var(--glow-soft);
}

.project-card-top {
  display: grid;
  gap: 0.75rem;
}

.project-card h2,
.project-card h3 {
  margin: 0;
  color: var(--text-main);
  line-height: 1.2;
}

.project-status {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.project-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(82, 255, 154, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.project-description,
.project-summary {
  color: var(--text-muted);
}

.project-description {
  margin: 0;
  line-height: 1.7;
}

.project-summary {
  max-width: 700px;
  font-size: 1.05rem;
}

.project-highlights {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.project-highlights li {
  line-height: 1.6;
}

.project-card .tech-tag-list {
  margin-top: 0.25rem;
}

.project-card-actions,
.project-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.project-card-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.project-link-secondary {
  color: var(--text-muted);
}

.project-link:hover,
.project-link:focus-visible,
.project-link-secondary:hover,
.project-link-secondary:focus-visible {
  color: var(--text-main);
}

.project-detail {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-detail .section-heading {
  margin-bottom: 0;
}

.project-detail-header {
  margin: 1.5rem 0 2rem;
}

.project-content-block {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid rgba(82, 255, 154, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.project-content-block h2 {
  margin: 0 0 0.85rem;
  color: var(--text-main);
  line-height: 1.2;
}

.project-content-block p {
  margin: 0;
  max-width: 68ch;
  color: var(--text-muted);
  line-height: 1.75;
}

.project-content-block ul {
  margin: 0;
  padding-left: 1.2rem;
}

.project-content-block li {
  color: var(--text-muted);
  line-height: 1.65;
}

/* .project-content-block li + li {
  margin-top: 0.5rem;
} */

.project-meta-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0;
}

.project-meta-item {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(82, 255, 154, 0.08);
  border-radius: 14px;
  background: rgba(82, 255, 154, 0.05);
}

.project-meta-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-meta-value {
  color: var(--text-main);
  font-size: 1rem;
}

.project-image-figure {
  margin: 0;
}

.project-image-wrapper {
  overflow: hidden;
  border: 1px solid rgba(82, 255, 154, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-soft);
}

.project-slideshow {
  position: relative;
}

.project-slideshow-track {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.project-slide {
  display: none;
}

.project-slide.is-active {
  display: block;
}

.project-image-wrapper {
  width: 100%;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  object-fit: cover;
}

.project-image-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #666;
}

.project-slideshow-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.project-slideshow-btn.prev {
  left: 1rem;
}

.project-slideshow-btn.next {
  right: 1rem;
}

.project-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-slideshow-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: none;
  border-radius: 50%;
  background: #c4c4c4;
  cursor: pointer;
}

.project-slideshow-dot.is-active {
  background: #333;
}

.project-image {
  width: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.project-image-caption {
  margin-top: 0.85rem;
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-tag-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-tag-list li,
.tag-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  list-style: none;
}

.tech-tag-list li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.tag-list li {
  border: 1px solid rgba(82, 255, 154, 0.14);
  background: rgba(82, 255, 154, 0.08);
  color: var(--accent);
}

/* Skills */

.skill-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(82, 255, 154, 0.08);
  border-radius: 12px;
  background: rgba(82, 255, 154, 0.05);
  color: var(--text-main);
}

/* CTA */

.cta-section {
  padding-bottom: 4rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: left;
}

.cta-panel::before {
  top: -30px;
  right: -10px;
  width: 160px;
  height: 160px;
}

.cta-panel p {
  max-width: 60ch;
}

/* Contact */

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 1rem;
  border: 1px solid rgba(82, 255, 154, 0.08);
  border-radius: 14px;
  background: rgba(82, 255, 154, 0.05);
}

.contact-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  text-shadow: 0 0 10px rgba(82, 255, 154, 0.28);
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.form-group label {
  color: var(--text-main);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(82, 255, 154, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(230, 241, 235, 0.45);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(82, 255, 154, 0.35);
  box-shadow: 0 0 0 3px rgba(82, 255, 154, 0.12);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group.is-invalid input,
.form-group.is-invalid textarea {
  border-color: rgba(255, 110, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 110, 110, 0.12);
}

.form-group.is-valid input,
.form-group.is-valid textarea {
  border-color: rgba(82, 255, 154, 0.35);
  box-shadow: 0 0 0 3px rgba(82, 255, 154, 0.08);
}

.field-help,
.field-error {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.field-help {
  color: var(--text-muted);
}

.field-error {
  color: var(--danger);
}

.character-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.character-count.is-near-limit {
  color: var(--warning);
}

.character-count.is-limit-reached {
  color: var(--danger);
  font-weight: 600;
}

.form-submit-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 190px;
  cursor: pointer;
}

.form-submit-button:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.form-submit-button.is-loading .button-spinner {
  opacity: 1;
  transform: scale(1);
  animation: button-spin 0.8s linear infinite;
}

.form-submit-button.is-loading .button-label {
  opacity: 0.92;
}

.button-label {
  padding-left: 1.5rem;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-message {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.form-message p {
  margin: 0;
}

.form-message-success {
  border-color: rgba(82, 255, 154, 0.18);
  background: rgba(82, 255, 154, 0.08);
  color: var(--accent);
}

.form-message-error {
  border-color: rgba(255, 90, 90, 0.2);
  background: rgba(255, 90, 90, 0.08);
  color: var(--danger);
}

.success-panel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(82, 255, 154, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(82, 255, 154, 0.08);
  box-shadow: 0 0 20px rgba(82, 255, 154, 0.08);
  outline: none;
}

.success-panel:focus {
  box-shadow:
    0 0 0 3px rgba(82, 255, 154, 0.14),
    0 0 20px rgba(82, 255, 154, 0.08);
}

.success-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(82, 255, 154, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.success-panel-content h3 {
  margin: 0 0 0.25rem;
  color: var(--text-main);
}

.success-panel-content p {
  margin: 0;
  color: var(--text-muted);
}

.form-privacy-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-privacy-note a {
  color: var(--accent);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.site-footer {
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.footer-content {
  display: grid;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-title {
  margin: 0 0 0.5rem;
  color: var(--text-main);
  font-weight: 700;
}

.footer-text {
  max-width: 65ch;
  margin: 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text-main);
}

/* Legal */

.legal-page .legal-panel {
  display: grid;
  gap: 1.5rem;
}

/* Responsive */

@media (min-width: 769px) {
  body.menu-is-open {
    overflow: auto;
  }

  .site-nav {
    flex-wrap: nowrap;
  }

  .menu-toggle,
  .menu-overlay,
  .menu-overlay.overlay-visible {
    display: none;
  }

  .nav-links,
  .nav-links.nav-open {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    width: auto;
    flex-basis: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-links a {
    padding: 0.35rem 0;
    border-radius: 0;
    color: var(--text-muted);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: none;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(82, 255, 154, 0.28);
  }

  .nav-links a[aria-current="page"] {
    position: relative;
    background: none;
    box-shadow: none;
    text-shadow: 0 0 12px rgba(82, 255, 154, 0.22);
  }

  .nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(82, 255, 154, 0.45);
  }

  .hero,
  .page-section,
  .featured-projects {
    padding: 3.5rem 0;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .info-grid,
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }

  .project-links {
    flex-direction: row;
    align-items: center;
  }

  .project-meta-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-content-block {
    padding: 1.5rem;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .footer-content {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .hero-layout,
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  }

  .about-hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  }

  .about-story-grid,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-hero-content,
  .about-side-panel-inner,
  .content-panel,
  .contact-panel,
  .hero-content,
  .hero-panel-inner,
  .cta-panel {
    padding: 2rem;
  }

  .landing-hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .hero-content h1 {
    max-width: 10ch;
  }

  .hero-focus-panel {
    padding: 1.75rem;
  }

  .hero-panel-title,
  .hero-panel-text {
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-summary {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo,
  .menu-toggle-bar,
  .menu-overlay,
  .nav-links,
  .project-card,
  .button-link,
  .button-secondary,
  .button-spinner,
  a,
  button,
  input,
  textarea {
    transition: none;
    animation: none;
  }
}