:root {
  --bg: #171b22;
  --bg-soft: #232933;
  --panel: #2a303a;
  --panel-deep: #131720;
  --text: #f1f2f7;
  --muted: #a6abc2;
  --accent: #3f6798;
  --accent-strong: #2f4f76;
  --accent-soft: #6f94c2;
  --accent-rgb: 63, 103, 152;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  z-index: 120;
  background: linear-gradient(90deg, #2d4f7a 0%, #6f94c2 100%);
  box-shadow: 0 0 12px rgba(63, 103, 152, 0.8);
}

.page-bg {
  position: fixed;
  inset: -2px;
  background:
    linear-gradient(rgba(12, 14, 18, 0.74), rgba(12, 14, 18, 0.74)),
    url("../images/aco escovado.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.page-bg::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 28%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.22) 100%);
  opacity: 0.62;
}

.page-bg::after {
  background:
    radial-gradient(30rem 22rem at 15% 44%, rgba(6, 8, 11, 0.52) 0%, transparent 75%),
    radial-gradient(30rem 20rem at 86% 64%, rgba(6, 8, 11, 0.58) 0%, transparent 75%);
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  margin-top: 0.65rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0.6rem;
  z-index: 70;
  border: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  padding: 0.3rem 0;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  border-radius: 0;
  transform: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  height: 44px;
  padding: 0 0.1rem 0 0.34rem;
  gap: 0;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
}

.brand:visited,
.brand:hover,
.brand:focus-visible {
  color: inherit;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.site-header.scrolled .brand {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.35s ease, width 0.35s ease, height 0.35s ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: translateX(1px) scale(1.06);
}

.site-header.scrolled .brand-logo {
  width: 32px;
  height: 32px;
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  gap: 1.15rem;
  padding: 0;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  transition: gap 0.25s ease, padding 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
}

.site-header.scrolled .main-nav {
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.main-nav a {
  color: #cfd7eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, padding 0.25s ease, border-radius 0.25s ease;
  padding: 0.58rem 0.95rem;
  border-radius: 0;
  border: 1px solid transparent;
  position: relative;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #f2f5ff;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.main-nav a.active {
  color: #f4f7ff;
}

.site-header.scrolled .main-nav a {
  color: #bcc5db;
  padding: 0.58rem 0.95rem;
  border-radius: 0;
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a:focus-visible {
  color: var(--text);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.14);
}

.site-header.scrolled .main-nav a.active {
  color: #f4f7ff;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.12));
  border-color: rgba(var(--accent-rgb), 0.5);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.14);
  outline: none;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.site-header.menu-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0 0;
}

.hero-left {
  position: relative;
  z-index: 4;
  margin-right: -140px;
  transform: translateX(48px);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #8f95af;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 0.95;
  margin: 0;
  position: relative;
  z-index: 5;
  text-shadow: 0 10px 26px rgba(8, 12, 20, 0.45);
}

.hero h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  margin: 0;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
  margin: 1rem 0;
}

.hero-photo {
  min-height: 520px;
  border-radius: 0;
  background: url("../images/retrato 1.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.82;
  -webkit-mask-image: radial-gradient(120% 110% at 50% 50%, #000 68%, rgba(0, 0, 0, 0.9) 78%, rgba(0, 0, 0, 0.42) 90%, transparent 100%);
  mask-image: radial-gradient(120% 110% at 50% 50%, #000 68%, rgba(0, 0, 0, 0.9) 78%, rgba(0, 0, 0, 0.42) 90%, transparent 100%);
  box-shadow: none;
  position: relative;
  z-index: 2;
  transform: translateX(-24px);
  overflow: hidden;
  transition: none;
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.link-arrow {
  text-decoration: none;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.25s ease, gap 0.25s ease;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--accent-soft);
  gap: 0.6rem;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list i {
  color: var(--accent);
  font-size: 0.9rem;
}

.contact-list a {
  color: #dbe4f8;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--accent-soft);
}

.project-flow {
  margin-top: 1rem;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.project-flow-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-soft);
}

.project-flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: space-between;
  gap: 0;
  align-items: start;
}

.project-flow-step {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}

.project-flow-label {
  font-size: 0.64rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #aac2e6;
  text-align: center;
  max-width: 100%;
}

.project-flow-index {
  min-width: 68px;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.26);
  outline: 1px solid rgba(var(--accent-rgb), 0.35);
  outline-offset: 0;
  color: #dce9ff;
  font-size: 1.5rem;
  font-weight: 800;
  transition: transform 0.25s ease, outline-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.project-flow-step:hover .project-flow-index,
.project-flow-step:focus-within .project-flow-index {
  transform: translateY(-1px);
  outline: 2px solid rgba(var(--accent-rgb), 0.72);
  box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.34);
}

.project-flow-index i {
  line-height: 1;
}

.project-flow-step strong {
  display: none;
}

.project-flow-step p {
  margin: 0.16rem 0 0;
  color: #cfd8ef;
  font-size: 0.76rem;
  line-height: 1.4;
}

.project-flow-actions {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.project-flow-actions .link-arrow {
  font-size: 0.82rem;
}

.contact-strip {
  background: linear-gradient(180deg, #171c2d 0%, #1b2031 100%);
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  padding: 1.6rem 0 1.5rem;
}

.tech-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
  padding: 0;
  margin: 0 0 0.75rem;
  max-width: 100%;
}

.tech-cert-card {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.28rem 0.4rem;
  color: #dfe5f6;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.tech-cert-card i {
  font-size: 0.88rem;
  color: var(--accent-soft);
  flex: 0 0 auto;
}

.tech-cert-card .devicon-expo-original.colored {
  color: #36d4ad !important;
}

.tech-cert-card .devicon-premierepro-plain.colored {
  color: #a039cf !important;
}

.tech-cert-card .devicon-photoshop-plain.colored {
  color: #548aee !important;
}

.tech-cert-card span {
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.tech-cert-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.16);
}

.contact-grid h3,
.works-head h3,
.cta h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
  line-height: 1.25;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.contact-grid > div:last-child h3 {
  width: 100%;
  line-height: 1.15;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.stats div {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stats strong {
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stats span {
  color: #c2c7dd;
  font-size: 0.88rem;
}

.services {
  padding: 2.2rem 0 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: var(--panel);
  border-radius: 2px;
  min-height: 240px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  border: 1px solid transparent;
}

.service-card.primary {
  background: var(--accent);
  color: #edf3ff;
}

.service-card h4 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
  margin: 0;
}

.service-card p {
  margin: 0.7rem 0 0;
  color: inherit;
  opacity: 0.9;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(8, 10, 18, 0.35);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.logos {
  padding: 2.2rem 0;
  position: relative;
}

.logos-marquee {
  overflow: hidden;
  width: 100%;
  padding: 0.12rem 1.25rem 0.22rem;
  box-sizing: border-box;
}

.logos-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: logos-marquee 22s linear infinite;
  will-change: transform;
}

.logos-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logos-item {
  color: #d4d8ea;
  opacity: 0.95;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0;
  padding: 0.58rem 0.9rem;
  white-space: nowrap;
}

.logos-item i {
  color: var(--accent);
}

.logos-item:hover {
  transform: none;
  color: #f2f4fe;
  border-color: rgba(var(--accent-rgb), 0.5);
}

.works {
  padding: 1rem 0 2rem;
}

.works-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.social-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.social-grid .github-dashboard-card {
  grid-column: span 2;
}

.social-grid .linkedin-card,
.social-grid .social-rest-inline {
  grid-column: span 1;
}

.work-card {
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    #2e3550;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.work-card h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
}

.work-card p {
  margin: 0;
  color: #bac0d6;
}

.work-card:hover {
  box-shadow: 0 22px 34px rgba(7, 9, 16, 0.45);
}

.quick-link-card {
  background: linear-gradient(160deg, rgba(45, 53, 79, 0.96), rgba(32, 38, 59, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.1rem;
  min-height: 198px;
  height: 100%;
  position: relative;
}

.quick-link-anchor {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.quick-link-icon {
  font-size: 1.5rem;
  color: #8db1e1;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(141, 177, 225, 0.4);
  background: rgba(141, 177, 225, 0.14);
}

.quick-link-card h4 {
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
}

.quick-link-card p {
  margin-top: 0.2rem;
  color: inherit;
  opacity: 0.88;
}

.repo-preview-inline {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.32rem;
  max-height: 5.5rem;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.repo-preview-inline::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.repo-preview-empty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.13);
  color: #dce6fb;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.5rem;
}

.repo-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.24rem 0.45rem;
}

.repo-mini-name {
  font-size: 0.66rem;
  font-weight: 700;
  color: #e5ebfb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-mini-metrics {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #b9c5df;
  font-size: 0.58rem;
  flex: 0 0 auto;
}

.repo-mini-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
}

.repo-mini-language {
  color: #d6ddf1;
}

.linkedin-preview-inline {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.3rem;
}

.linkedin-preview-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #dce4f7;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.24rem 0.44rem;
}

.linkedin-preview-row i {
  color: #9bc0f1;
  font-size: 0.68rem;
}

.social-rest-inline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: start;
  padding-top: 0;
}

.social-rest-wrap {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.9rem;
  margin-top: 0;
  align-self: flex-start;
  z-index: 1;
}

.social-tile {
  display: grid;
  place-items: center;
}

.social-tile:hover,
.social-tile:focus-visible {
  outline: none;
}

.social-tile i {
  color: #9bb8df;
  font-size: 1.7rem;
}

.github-dashboard-card p {
  margin-top: 0.45rem;
}

.quick-link-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 16px 30px rgba(8, 10, 18, 0.35);
}

.work-card-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  text-decoration: none;
  color: inherit;
}

.work-card-trigger {
  cursor: pointer;
}

.work-card-trigger:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.85);
  outline-offset: -2px;
}

.work-carousel {
  isolation: isolate;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.45s ease, filter 0.35s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.work-card-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.45s ease, filter 0.35s ease;
}

.work-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.05) 0%, rgba(8, 10, 18, 0.9) 100%);
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.work-card-media:hover img,
.work-card-media:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.08);
}

.work-card-media:hover .work-overlay,
.work-card-media:focus-visible .work-overlay {
  transform: translateY(0);
}

body.modal-open {
  overflow: hidden;
}

body.popup-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  padding: 1.7rem 0.75rem 0.75rem;
  display: grid;
  place-items: center;
}

.project-modal[hidden] {
  display: none;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.76);
  backdrop-filter: blur(4px);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  max-height: min(95vh, 920px);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(160deg, rgba(23, 29, 46, 0.96), rgba(14, 19, 31, 0.95));
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.48);
  padding: 1.15rem;
  display: grid;
  gap: 0.95rem;
  overflow: visible;
  animation: project-modal-in 0.24s ease;
}

.project-modal-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #97a8c8;
  font-weight: 700;
}

.project-modal-file-name {
  margin: -0.45rem 0 0.15rem;
  color: #dce7fd;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-modal-title {
  margin: 0;
  position: absolute;
  top: -2.94rem;
  left: 0.68rem;
  z-index: 5;
  max-width: calc(100% - 1.36rem);
  padding: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 2.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: #edf3ff;
  text-shadow: 0 8px 20px rgba(6, 9, 16, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.project-modal-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 0.75rem;
  align-items: center;
}

.project-modal-stage {
  position: relative;
  min-width: 0;
}

.project-modal-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.58) 0%, rgba(7, 10, 16, 0) 34%);
}

.project-modal-nav {
  width: 48px;
  height: 48px;
  font-size: 1.02rem;
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.15);
}

.project-modal-nav:hover,
.project-modal-nav:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.68);
  background: rgba(var(--accent-rgb), 0.28);
}

.project-modal-nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.project-modal-frame {
  position: relative;
  margin: 0;
  min-height: clamp(360px, 68vh, 760px);
  padding: 0.3rem;
  border: 1px solid rgba(var(--accent-rgb), 0.7);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.2), rgba(9, 13, 21, 0.94));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 0 5px rgba(var(--accent-rgb), 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.project-modal-frame::before {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}

.project-modal-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.project-modal-image.is-ready {
  opacity: 1;
}

.project-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-modal-counter {
  color: #d5def0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.project-modal-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.project-modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.project-modal-dot:hover,
.project-modal-dot:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.82);
  outline: none;
}

.project-modal-dot.is-active {
  background: rgba(var(--accent-rgb), 0.8);
  border-color: rgba(var(--accent-rgb), 0.95);
  transform: scale(1.08);
}

.cta {
  margin-top: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.cta > .reveal {
  padding: 0;
  border: 0;
  background: transparent;
}

.cta > .reveal h3 {
  margin-bottom: 0.85rem;
}

.cta > .reveal > .muted {
  max-width: 32rem;
  margin-top: 0;
}

.cta .contact-list {
  margin-top: 0.9rem;
  gap: 0.6rem;
}

.cta .contact-list li {
  gap: 0.55rem;
}

.mini-about {
  margin-top: 1.05rem;
  padding: 0.9rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  max-width: 32rem;
}

.mini-about h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #e4e9f8;
}

.mini-about p {
  margin: 0.45rem 0 0.7rem;
  color: #b8c0d8;
  line-height: 1.45;
  font-size: 0.86rem;
  text-align: justify;
}

.contact-form {
  background: linear-gradient(160deg, rgba(24, 29, 45, 0.78), rgba(17, 22, 36, 0.62));
  padding: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: none;
}

.contact-form h3 {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.9rem;
}

.contact-form span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #c3c9df;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.62rem 0.7rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.08);
}



.site-footer {
  padding: 2.5rem 0 3rem;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1rem;
}

.site-footer p {
  color: #b4b9d0;
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--accent);
}

.contact-fab.c-icon-button.c-icon-button--fab {
  position: fixed;
  left: 1.3rem;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid transparent;
  color: #ffffff;
}

.contact-fab.c-icon-button.c-icon-button--fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid transparent;
  pointer-events: none;
  animation: whatsapp-ring 1.9s ease-out infinite;
}

.contact-fab.c-icon-button.c-icon-button--fab i {
  display: block;
  font-size: 1.24rem;
  line-height: 1;
}

.whatsapp-fab.c-icon-button.c-icon-button--fab {
  bottom: 1.3rem;
  border: 2px solid #1fb95a;
  background: radial-gradient(circle at 30% 20%, #52f59d 0%, #25d366 44%, #1cae53 100%);
  box-shadow:
    0 12px 24px rgba(6, 18, 12, 0.44),
    0 0 0 3px rgba(37, 211, 102, 0.28),
    0 0 20px rgba(37, 211, 102, 0.62);
}

.whatsapp-fab.c-icon-button.c-icon-button--fab::after {
  border: 1px solid rgba(37, 211, 102, 0.62);
}

.email-fab.c-icon-button.c-icon-button--fab {
  bottom: 4.65rem;
  border-color: #2f86df;
  background: radial-gradient(circle at 30% 20%, #7ec4ff 0%, #4ba3ff 44%, #2f86df 100%);
  box-shadow:
    0 12px 24px rgba(7, 12, 20, 0.46),
    0 0 0 3px rgba(75, 163, 255, 0.28),
    0 0 20px rgba(75, 163, 255, 0.62);
}

.email-fab.c-icon-button.c-icon-button--fab::after {
  border: 1px solid rgba(75, 163, 255, 0.62);
}

.whatsapp-fab.c-icon-button.c-icon-button--fab:hover,
.whatsapp-fab.c-icon-button.c-icon-button--fab:focus-visible {
  border-color: #1aa851;
  background: radial-gradient(circle at 30% 20%, #68ffaf 0%, #29e070 45%, #1eb85a 100%);
  box-shadow:
    0 14px 28px rgba(6, 18, 12, 0.5),
    0 0 0 3px rgba(37, 211, 102, 0.36),
    0 0 24px rgba(37, 211, 102, 0.78);
  transform: translateY(-2px) scale(1.04);
}

.email-fab.c-icon-button.c-icon-button--fab:hover,
.email-fab.c-icon-button.c-icon-button--fab:focus-visible {
  border-color: #2476c7;
  background: radial-gradient(circle at 30% 20%, #9ad3ff 0%, #58adff 45%, #338ee8 100%);
  box-shadow:
    0 14px 28px rgba(7, 12, 20, 0.52),
    0 0 0 3px rgba(75, 163, 255, 0.36),
    0 0 24px rgba(75, 163, 255, 0.78);
  transform: translateY(-2px) scale(1.04);
}

.form-popup {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.form-popup[hidden] {
  display: none;
}

.form-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.7);
  backdrop-filter: blur(6px);
}

.form-popup-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(18, 24, 34, 0.98), rgba(13, 18, 27, 0.96));
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 1.3rem 1.2rem 1.2rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  animation: form-popup-in 0.22s ease;
}

.form-popup-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #52f59d 0%, #25d366 44%, #1cae53 100%);
  color: #ffffff;
  box-shadow:
    0 0 0 4px rgba(37, 211, 102, 0.14),
    0 0 22px rgba(37, 211, 102, 0.3);
}

.form-popup-icon i {
  font-size: 1.9rem;
  line-height: 1;
}

.form-popup-kicker {
  margin: 0;
  color: #8d98ad;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.form-popup-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.15;
  color: #eef4ff;
}

.form-popup-message {
  margin: 0;
  color: #c7d0e4;
  line-height: 1.5;
  font-size: 0.95rem;
}

.form-popup-button {
  min-width: 110px;
  margin-top: 0.25rem;
}

.form-popup--error .form-popup-panel {
  border-color: rgba(255, 185, 84, 0.34);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(255, 185, 84, 0.16);
}

.form-popup--error .form-popup-icon {
  background: radial-gradient(circle at 30% 20%, #ffe0a1 0%, #ffbb4a 44%, #cc8212 100%);
  box-shadow:
    0 0 0 4px rgba(255, 185, 84, 0.14),
    0 0 22px rgba(255, 185, 84, 0.3);
}

.form-popup--error .form-popup-kicker {
  color: #d6b07b;
}

@keyframes form-popup-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes whatsapp-ring {
  0% {
    opacity: 0.68;
    transform: scale(0.82);
  }
  70% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

@keyframes logos-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333333%);
  }
}

@keyframes project-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.12fr) minmax(0, 0.9fr);
    gap: 0.65rem;
    padding-top: 1rem;
    overflow: hidden;
  }

  .hero-left {
    margin-right: -82px;
    transform: translateX(24px);
  }

  .hero h1 {
    font-size: clamp(2rem, 5.8vw, 3.2rem);
  }

  .hero h2 {
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  }

  .hero .muted {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hero-photo {
    order: 0;
    min-height: 420px;
    transform: translateX(-8px);
    background-position: center 12%;
  }

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

  .cta,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta > .reveal > .muted,
  .mini-about {
    max-width: none;
    width: 100%;
  }

  .tech-cert-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .social-grid .github-dashboard-card,
  .social-grid .linkedin-card,
  .social-grid .social-rest-inline {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 3.5rem, var(--max-width));
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    top: 0.3rem;
    gap: 0.6rem;
    padding: 0.2rem 0;
  }

  .site-header.scrolled {
    padding: 0.2rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0.3rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    transition: max-height 0.28s ease, opacity 0.25s ease, margin-top 0.25s ease, padding 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  }

  .site-header.menu-open .main-nav {
    max-height: 18rem;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.35rem;
    padding: 0.35rem;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(10, 14, 24, 0.72);
  }

  .main-nav a {
    font-size: 0.84rem;
    padding: 0.52rem 0.78rem;
    width: 100%;
    white-space: normal;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.18fr) minmax(0, 0.9fr);
    gap: 0.38rem;
    padding-top: 0.4rem;
  }

  .hero-left {
    margin-right: -58px;
    transform: translateX(14px);
  }

  .hero .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.45rem;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 8.2vw, 2.25rem);
    line-height: 0.95;
  }

  .hero h2 {
    font-size: clamp(0.8rem, 3.2vw, 1rem);
  }

  .hero .muted {
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0.7rem 0;
  }

  .hero-right > .muted {
    display: none;
  }

  .hero-right > .link-arrow {
    display: none;
  }

  .hero-photo {
    min-height: clamp(250px, 66vw, 320px);
    transform: translateX(-4px);
    background-position: center 10%;
    align-self: end;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-socials {
    margin-top: 0.7rem;
    gap: 0.45rem;
  }

  .hero .c-icon-button--round-sm {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
  }

  .services,
  .works-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .contact-strip {
    padding: 0.5rem 0 1rem;
  }

  .contact-grid {
    gap: 0.9rem;
    padding: 1.5rem 0 1.2rem;
  }

  .contact-grid h3 {
    font-size: clamp(1.15rem, 6.2vw, 1.55rem);
  }

  .contact-grid .muted {
    margin: 0.75rem 0;
    font-size: 0.97rem;
    line-height: 1.5;
  }

  .project-flow {
    margin-top: 0.8rem;
    padding: 0;
  }

  .project-flow-list {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    justify-content: space-between;
    gap: 0;
    overflow-x: visible;
    padding-top: 0.22rem;
    padding-bottom: 0.3rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .project-flow-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .project-flow-step {
    display: flex;
    flex: 0 0 auto;
    min-height: 0;
    gap: 0.28rem;
  }

  .project-flow-index {
    min-width: 48px;
    min-height: 48px;
    font-size: 1rem;
  }

  .project-flow-label {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }

  .project-flow-actions {
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .social-grid .github-dashboard-card,
  .social-grid .linkedin-card,
  .social-grid .social-rest-inline {
    grid-column: auto;
  }

  .service-card {
    min-height: 0;
    padding: 1.5rem 1.2rem;
  }

  .work-card {
    min-height: 245px;
  }

  .quick-link-card {
    min-height: 0;
  }

  .quick-link-card h4 {
    font-size: 1.2rem;
  }

  .repo-mini-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.28rem;
  }

  .repo-mini-metrics {
    flex-wrap: wrap;
  }

  .social-rest-wrap {
    gap: 0.6rem;
  }

  .social-rest-inline {
    width: auto;
    justify-content: flex-start;
  }

  .tech-cert-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.42rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
    margin-bottom: 0.75rem;
  }

  .tech-cert-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .tech-cert-card {
    min-height: 34px;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    justify-content: center;
    padding: 0;
  }

  .tech-cert-card i {
    font-size: 0.98rem;
  }

  .tech-cert-card span {
    display: none;
  }

  .tech-cert-card:hover,
  .tech-cert-card:focus-visible {
    transform: none;
  }

  .stats {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .stats div {
    min-width: 0;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .stats strong {
    font-size: clamp(1.75rem, 7.4vw, 2.1rem);
  }

  .stats span {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .contact-list {
    gap: 0.55rem;
  }

  .contact-list li {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .cta {
    margin-top: 1.5rem;
    padding: 2.5rem 0;
    gap: 1.2rem;
  }

  .mini-about {
    margin-top: 0.85rem;
    padding: 1rem 1.2rem;
  }

  .mini-about p {
    font-size: 0.83rem;
  }

  .contact-form {
    padding: 1.2rem 1.2rem;
  }

  .contact-list a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-form .c-button {
    width: 100%;
  }

  .logos-marquee {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .back-to-top {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .contact-fab.c-icon-button.c-icon-button--fab {
    left: 0.8rem;
  }

  .whatsapp-fab.c-icon-button.c-icon-button--fab {
    bottom: 0.8rem;
  }

  .email-fab.c-icon-button.c-icon-button--fab {
    bottom: 4.15rem;
  }

  .form-popup-panel {
    width: min(100%, 360px);
    padding: 1.1rem 1rem 1rem;
  }

  .form-popup-icon {
    width: 56px;
    height: 56px;
  }

  .form-popup-icon i {
    font-size: 1.7rem;
  }

  .project-modal {
    padding: 1.45rem 0.75rem 0.75rem;
  }

  .project-modal-panel {
    width: 100%;
    padding: 0.95rem;
    gap: 0.75rem;
  }

  .project-modal-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 0.42rem;
  }

  .project-modal-nav {
    width: 38px;
    height: 38px;
    font-size: 0.84rem;
  }

  .project-modal-frame {
    min-height: clamp(260px, 54vh, 500px);
  }

  .project-modal-title {
    top: -2.34rem;
    left: 0.62rem;
    max-width: calc(100% - 1.24rem);
    font-size: clamp(1.18rem, 6vw, 1.5rem);
  }

  .project-modal-counter {
    font-size: 0.7rem;
  }

  .project-modal-file-name {
    margin-top: -0.35rem;
    font-size: 0.76rem;
  }

  .project-modal-dot {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 3.1rem, var(--max-width));
  }

  .main-nav {
    gap: 0.35rem;
  }

  .main-nav a {
    font-size: 0.8rem;
    padding: 0.48rem 0.66rem;
  }

  .hero h1 {
    font-size: clamp(1.2rem, 7.1vw, 1.75rem);
  }

  .hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.22fr) minmax(0, 0.88fr);
    gap: 0.26rem;
    padding-top: 0.3rem;
  }

  .hero-left {
    margin-right: -46px;
    transform: translateX(10px);
  }

  .hero h2 {
    font-size: clamp(0.72rem, 3.4vw, 0.88rem);
  }

  .hero .muted {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero-photo {
    min-height: clamp(220px, 62vw, 280px);
    align-self: end;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero .c-icon-button--round-sm {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .contact-strip .tech-cert-grid {
    display: flex;
    flex-wrap: nowrap;
  }

  .project-flow-list {
    gap: 0;
  }

  .project-flow-step {
    flex: 0 0 auto;
    gap: 0.24rem;
  }

  .project-flow-index {
    min-width: 42px;
    min-height: 42px;
    font-size: 0.9rem;
  }

  .project-flow-label {
    font-size: 0.48rem;
    letter-spacing: 0.03em;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .stats strong {
    font-size: clamp(1.62rem, 8.2vw, 1.9rem);
  }

  .stats span {
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .social-rest-wrap {
    width: auto;
    justify-content: flex-start;
  }

  .project-modal-title {
    top: -2.06rem;
    left: 0.56rem;
    max-width: calc(100% - 1.12rem);
    font-size: clamp(1.02rem, 6.8vw, 1.28rem);
  }

  .project-modal-file-name {
    margin-top: -0.28rem;
    font-size: 0.7rem;
  }

  .form-popup {
    padding: 0.8rem;
  }

  .form-popup-panel {
    width: min(100%, 320px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
  }

  .contact-fab.c-icon-button.c-icon-button--fab::after {
    animation: none;
  }

  .form-popup-panel {
    animation: none;
  }
}
