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

:root {
  --bg: #000;
  --accent: #ff5722;
  --text: #fff;
  --muted: #8a8a8a;
  --muted-light: #b0b0b0;
  --border: rgba(255, 255, 255, 0.12);
  --font-display: "Michroma", sans-serif;
  --font-numbers: "Orbitron", sans-serif;
  --frame-inset-x: clamp(1.25rem, 7.5vw, 5.5rem);
}

html {
  overflow: hidden;
  height: 100%;
}

html, body {
  min-height: 100%;
  overflow: hidden;
  max-width: 100vw;
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a, button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; text-decoration: none; }

/* Seções — scroll horizontal, uma por vez, sem height: 100vh */
.sections-track {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100svh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sections-track::-webkit-scrollbar {
  display: none;
}

.sections-track > * {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  scrollbar-width: thin;
}

.sections-track > .services {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sections-track > .work {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sections-track > .testimonials {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sections-track > .footer {
  overflow-y: hidden;
  overflow-x: hidden;
}

.sections-track > .home {
  overflow: hidden;
  overscroll-behavior: contain;
}

.sections-track > :not(.home):not(.testimonials):not(.footer) {
  padding-inline: var(--frame-inset-x);
}

.home {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background-color: #000;
}

/* Header */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 2rem var(--frame-inset-x);
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  justify-self: start;
}

.logo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
  margin-left: 1px;
  vertical-align: middle;
  transform: translateY(-2px);
}

.contact-btn {
  justify-self: end;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.3s;
}

.contact-btn:hover {
  border-color: rgba(255,255,255,0.3);
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s, background 0.25s;
}

.lang-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.85);
}

/* Left content */
.left-content {
  position: absolute;
  left: var(--frame-inset-x);
  top: clamp(7.5rem, 24vh, 11rem);
  z-index: 10;
  max-width: min(420px, 38vw);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.status-text {
  font-size: 0.7rem;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}

.name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 9.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.role {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.role-line {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.role-text {
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.01em;
}

.bio-block {
  position: relative;
  padding-top: 0.5rem;
}

.quote-icon {
  display: block;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.35rem;
  letter-spacing: -0.05em;
}

.bio-text {
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 340px;
  padding-left: 1.35rem;
}

.bio-text + .bio-text {
  margin-top: 1.1rem;
}

/* Portrait */
.portrait-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.portrait-wrap::after {
  display: none;
}

.portrait-wrap img {
  position: absolute;
  right: 0;
  bottom: 0;
  top: auto;
  left: auto;
  transform: none;
  width: min(780px, 56vw);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
  mask-image: none;
  -webkit-mask-image: none;
}

/* Social bar */
.social-bar {
  position: absolute;
  right: max(1rem, calc(var(--frame-inset-x) - 0.25rem));
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.social-bar a:hover {
  color: var(--accent);
  background: rgba(255, 87, 34, 0.12);
  transform: translateY(-1px);
}

.social-bar a:active {
  transform: translateY(0);
}

.social-bar a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-bar svg {
  width: 20px;
  height: 20px;
}

.social-bar .social-icon-github {
  width: 21px;
  height: 21px;
}

/* Hire Me tab */
.hire-tab {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.hire-tab-inner {
  position: relative;
  padding: 0.75rem 3.75rem 0.9rem;
  background: linear-gradient(180deg, #1e1e1e 0%, #141414 100%);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.3s;
}

.hire-tab-inner:hover {
  background: linear-gradient(180deg, #282828 0%, #1a1a1a 100%);
}

/* About / Skills */
.about {
  position: relative;
  background: #121212;
  padding: 5rem 0 4rem;
  overflow-x: hidden;
}

.sections-track > .about {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

.about-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.about-glow-1 {
  width: 420px;
  height: 420px;
  background: rgba(255, 87, 34, 0.12);
  top: -80px;
  left: -100px;
}

.about-glow-2 {
  width: 360px;
  height: 360px;
  background: rgba(255, 87, 34, 0.08);
  top: 40%;
  right: -80px;
}

.about-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 1.75rem;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-bottom: 4rem;
}

.about-heading .muted {
  color: #555;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-col {
  padding: 2rem 1.75rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.skill-col:first-child { padding-left: 0; }
.skill-col:last-child { border-right: none; padding-right: 0; }

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.skill-title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.4;
}

.skill-index {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.skill-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

.skill-box {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.skill-percent {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-numbers);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 2rem 1rem;
}

.skill-bar {
  height: 28px;
  background: repeating-linear-gradient(
    -45deg,
    #3a3a3a,
    #3a3a3a 4px,
    #2a2a2a 4px,
    #2a2a2a 8px
  );
}

.skill-bar.active {
  background: repeating-linear-gradient(
    -45deg,
    #ff5722,
    #ff5722 4px,
    #e04a1a 4px,
    #e04a1a 8px
  );
}

/* Services / What I Do */
.services {
  background: linear-gradient(180deg, #121212 0%, #0a0a0a 40%, #000 100%);
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  flex-shrink: 0;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, #121212 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.services-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}

.services-left,
.services-right {
  min-width: 0;
  width: 100%;
}

.services-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
}

.service-list li {
  width: 100%;
  min-width: 0;
}

.service-item {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: color 0.35s ease, font-size 0.35s ease;
  text-align: left;
  padding: 0.1rem 0;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.service-item:hover {
  color: rgba(255, 255, 255, 0.25);
}

.service-item.active {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.75rem);
}

.service-detail-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 0;
}

.service-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: clamp(1.25rem, 2.5vh, 1.75rem) 0 clamp(1rem, 2vh, 1.25rem);
}

.service-block-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.service-about-text {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
  max-width: 100%;
}

.tech-carousel-wrap {
  position: relative;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.tech-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.tech-carousel-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
  animation: techMarquee 22s linear infinite;
}

.tech-carousel:hover .tech-carousel-track {
  animation-play-state: paused;
}

@keyframes techMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-chip {
  flex-shrink: 0;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.tech-chip {
  flex-shrink: 0;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

/* Recent Work */
.work {
  background: #000;
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  overflow-x: hidden;
  width: 100%;
  flex-shrink: 0;
  position: relative;
}

.work-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "card heading"
    "card actions";
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}

.work-card {
  grid-area: card;
  position: relative;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 2.5vh, 2rem);
  min-width: 0;
  overflow: visible;
}

.work-tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

.work-card-desc {
  font-size: 0.62rem;
  line-height: 1.85;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
  max-width: 320px;
}

.work-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
  overflow: hidden;
  background: #161616;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.work-visual picture {
  display: block;
  position: absolute;
  inset: 0;
}

.work-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.work-diamonds {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.15rem 0.7rem;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
}

.work-diamond {
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.work-diamond.active {
  background: var(--accent);
  border-color: var(--accent);
}

.work-project-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.work-content,
.work-heading-block,
.work-actions {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.work-heading-block {
  grid-area: heading;
  align-self: end;
  width: 100%;
}

.work-actions {
  grid-area: actions;
  align-self: start;
  width: 100%;
}

.work-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
}

.work-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: clamp(0.85rem, 1.8vh, 1.25rem);
  max-width: 520px;
}

.work-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  max-width: 460px;
}

.work-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 1.1rem 2.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s;
}

.work-cta:hover {
  background: #e04a1a;
}

.work-nav {
  max-width: 1280px;
  margin: clamp(1.25rem, 2.5vh, 2rem) auto 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.work-nav-line {
  flex: 1;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  height: 0;
}

.work-next {
  padding: 0.55rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.3s;
  flex-shrink: 0;
}

.work-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-top: clamp(1rem, 2vh, 1.5rem);
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}

.work-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  cursor: pointer;
}

.work-arrow svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.work-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 87, 34, 0.1);
}

.work-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.work-all {
  padding: 0.55rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.3s;
  flex-shrink: 0;
}

.work-all:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

/* Projects page */
html.projects-root {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
  max-width: 100%;
}

html.projects-root body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
  max-width: 100%;
}

html.projects-root body.projects-page {
  overflow-x: hidden;
}

.projects-page {
  position: relative;
  background: #121212;
  min-height: 100svh;
  overflow-x: hidden;
}

.projects-header,
.projects-main {
  position: relative;
  z-index: 1;
}

.projects-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vh, 2rem) var(--frame-inset-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.projects-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.3s;
}

.projects-back::before {
  content: '<';
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1;
  opacity: 0.85;
}

.projects-back:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.projects-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(0.5rem, 2vh, 1rem) var(--frame-inset-x) clamp(3rem, 8vh, 5rem);
}

.projects-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

.projects-hero-left {
  min-width: 0;
}

.projects-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.projects-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: 620px;
}

.projects-accent {
  color: var(--accent);
}

.projects-intro {
  font-size: 0.62rem;
  line-height: 1.85;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  justify-self: end;
  padding-top: clamp(2rem, 4vh, 3.25rem);
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

.projects-filter {
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.projects-filter:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.45);
}

.projects-filter.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vh, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.5vh, 1.1rem);
  min-width: 0;
}

.project-card-media {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.project-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-card-media:hover .project-card-img {
  transform: scale(1.03);
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s ease;
  background: #0a0a0a;
}

.project-card-media--mockup {
  background: transparent;
}

.project-card-img--mockup {
  object-fit: cover;
  object-position: center center;
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.project-card-media:hover .project-card-placeholder {
  transform: scale(1.03);
}

.project-card-title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.project-card-title a {
  color: inherit;
  transition: color 0.25s;
}

.project-card-title a:hover {
  color: var(--accent);
}

.project-card-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 520px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.project-card-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.projects-empty {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 3rem 0;
}

@media (max-width: 900px) {
  .projects-hero {
    grid-template-columns: 1fr;
  }

  .projects-intro {
    text-align: left;
    justify-self: start;
    padding-top: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .work-inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  .work-heading-block {
    order: 1;
    align-self: stretch;
  }

  .work-card {
    order: 2;
    flex-shrink: 0;
    width: 100%;
  }

  .work-visual {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .work-actions {
    order: 3;
    align-self: stretch;
  }

  .work-heading-block .work-heading {
    margin-bottom: 0;
  }

  .work-diamonds {
    display: none;
  }

  .work-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .work-nav-line {
    width: 100%;
    flex: none;
  }

  .work-all {
    width: 100%;
    text-align: center;
  }

  .work-arrows {
    gap: 1.25rem;
    margin-top: 1.25rem;
  }

  .work-arrow {
    width: 48px;
    height: 48px;
  }
}

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, #000 0%, #141414 25%, #141414 70%, #0a0a0a 100%);
  padding: clamp(2rem, 3.5vh, 3rem) 0 0;
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonials-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: clamp(0.85rem, 1.8vh, 1.5rem);
  padding: 0 1.25rem;
  flex-shrink: 0;
}

.testimonials-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: clamp(2.5rem, 4vh, 3.5rem);
  padding: 0 1.25rem;
  flex-shrink: 0;
}

.testimonials-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.5vh, 1rem);
  flex: 0 0 auto;
  min-height: 0;
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
}

.testimonials-row {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.testimonials-row.offset {
  padding-left: clamp(2rem, 8vw, 140px);
}

.testimonials-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: testimonialScrollLeft 80s linear infinite;
}

.testimonials-row.reverse .testimonials-track {
  animation: testimonialScrollRight 80s linear infinite;
}

.testimonials-row:hover .testimonials-track {
  animation-play-state: paused;
}

@keyframes testimonialScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes testimonialScrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.testimonial-card {
  flex-shrink: 0;
  width: min(420px, 85vw);
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
}

.testimonial-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}

.testimonial-role {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.15rem;
}

.testimonial-brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: capitalize;
  flex-shrink: 0;
  opacity: 0.9;
}

.testimonial-brand.vivo {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.testimonial-quote {
  font-size: 0.72rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
}

/* Responsive */

.testimonial-quote {
  font-size: 0.72rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
}


.testimonial-quote {
  font-size: 0.72rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
}

/* Stats (dentro de Testimonials) */
.testimonials-stats {
  padding: clamp(1.5rem, 3vh, 2.25rem) var(--frame-inset-x) clamp(1.25rem, 2vh, 1.75rem);
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
}

.stats-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: clamp(1rem, 2vh, 2rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vh, 2rem);
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.stats-item-value {
  font-family: var(--font-numbers);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
}

.stats-item-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.75rem;
}

.stats-banner {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  overflow: hidden;
  padding: 0.9rem 0;
  flex-shrink: 0;
  margin-top: clamp(1.25rem, 2.5vh, 2rem);
}

.stats-banner::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 140px;
  background: linear-gradient(to right, transparent, rgba(255, 180, 160, 0.55));
  pointer-events: none;
  z-index: 1;
}

.stats-banner-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: statsBannerScroll 55s linear infinite;
}

@keyframes statsBannerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stats-banner-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

.stats-banner-star {
  font-size: 0.65rem;
  color: #000;
}

/* Footer / Contact */
.footer {
  --fw-line: rgba(255, 255, 255, 0.08);
  position: relative;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.footer-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 380px;
  height: 380px;
  background: rgba(255, 87, 34, 0.12);
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.footer-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--frame-inset-x);
  z-index: 1;
}

.footer-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(130px, 17%) minmax(0, 1fr) minmax(130px, 17%);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 0;
  border-top: 1px solid var(--fw-line);
}

.footer-grid > :nth-child(3n+1) {
  border-right: 1px solid var(--fw-line);
}

.footer-grid > :nth-child(3n) {
  border-left: 1px solid var(--fw-line);
}

.footer-grid-row-cta {
  border-bottom: 1px solid var(--fw-line);
}

.footer-grid-gap {
  min-height: 1px;
  pointer-events: none;
}

.footer-grid-gap.footer-grid-row-cta {
  display: none;
}

.footer-cta.footer-grid-row-cta {
  grid-column: 1 / -1;
  grid-row: 1;
}

.footer-grid-row-body {
  grid-row: 2;
  min-height: 0;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(1.75rem, 4vh, 4rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 2vh, 2rem);
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, min(9vw, 5.5vh), 4.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: clamp(0.85rem, 1.8vh, 2rem);
  text-transform: uppercase;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-cta-line {
  display: block;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.footer-contact-btn {
  display: inline-block;
  background: #ff4500;
  color: #fff;
  padding: 0.95rem 2.75rem;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s;
}

.footer-contact-btn:hover {
  background: #e03e20;
}


.footer-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  z-index: 3;
  overflow: visible;
}


.footer-bg-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 24rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
  letter-spacing: 0.05em;
}

.footer-side {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(0.5rem, 1.5vh, 1.5rem);
  min-height: 0;
}

.footer-side-left .footer-logo {
  margin-top: auto;
  margin-bottom: clamp(0.75rem, 3vh, 5rem);
  align-self: center;
}


.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  text-align: center;
}

.footer-meta p {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}


.footer-portrait-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: clamp(-3rem, -5.8vh, -3.35rem);
  transform: translateX(-50%);
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.footer-portrait-wrap img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  mask-image: none;
  -webkit-mask-image: none;
}

.footer-tagline {
  position: absolute;
  bottom: clamp(0.5rem, 1.5vh, 1.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  width: min(820px, 94%);
  margin: 0;
  font-size: clamp(0.48rem, 1.1vh, 0.58rem);
  letter-spacing: 0.1em;
  line-height: 1.75;
  text-transform: uppercase;
}

.footer-tagline-bold {
  display: block;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.footer-tagline-medium {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: clamp(0.65rem, 1.2vh, 1rem) 0 clamp(0.85rem, 1.5vh, 1.25rem);
  border-top: 1px solid var(--fw-line);
}

.footer-bar p,
.footer-bar a {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
}

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

/* Responsive */
@media (max-width: 1400px) {
  .left-content {
    max-width: min(360px, 34vw);
  }

  .name {
    font-size: clamp(2.75rem, 5.2vw, 7rem);
  }

  .portrait-wrap img {
    width: min(720px, 54vw);
    right: 0;
    bottom: 0;
  }
}

@media (max-width: 1200px) {
  .left-content {
    left: 2rem;
    max-width: min(300px, 32vw);
    top: clamp(7rem, 22vh, 10rem);
  }

  .portrait-wrap img {
    width: min(580px, 50vw);
    right: 0;
    bottom: 0;
  }

  .name {
    font-size: clamp(2.5rem, 4.5vw, 5.5rem);
  }
}

@media (max-width: 1100px) {
  .left-content {
    max-width: min(260px, 30vw);
  }

  .name {
    font-size: clamp(2.25rem, 4vw, 4.5rem);
  }

  .portrait-wrap img {
    width: min(500px, 46vw);
    right: 0;
    bottom: 0;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .left-content {
    position: absolute;
    left: var(--frame-inset-x);
    top: clamp(5.5rem, 16vh, 8.5rem);
    max-width: min(320px, 44vw);
    padding: 0;
  }

  .bio-block,
  .bio-text {
    text-align: left;
    max-width: 100%;
  }

  .name {
    font-size: clamp(2rem, 4.2vw, 3.75rem);
  }

  .role {
    margin-bottom: 1.5rem;
  }

  .portrait-wrap {
    position: absolute;
    inset: 0;
    padding: 0;
  }

  .portrait-wrap::after {
    display: none;
  }

  .portrait-wrap img {
    top: auto;
    bottom: 0;
    transform: none;
    width: min(440px, 46vw);
    height: auto;
    max-height: 100%;
    right: 0;
    object-fit: contain;
    object-position: right bottom;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .social-bar {
    position: absolute;
    right: max(0.5rem, calc(var(--frame-inset-x) - 0.75rem));
    top: auto;
    bottom: clamp(5rem, 14vh, 8rem);
    transform: none;
    flex-direction: column;
    margin: 0;
    padding: 1rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(12px);
  }

  .hire-tab {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}

@media (max-width: 1024px) {
  .header { padding: 1.5rem 2rem; }

  .sections-track > .services,
  .sections-track > .work {
    justify-content: flex-start;
  }

  .about {
    padding: clamp(2rem, 4vh, 3rem) 0 clamp(1.75rem, 3vh, 2.5rem);
  }

  .about-heading {
    max-width: 100%;
    margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
    font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  }

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

  .skill-col {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 1rem 1.25rem;
  }

  .skill-col:first-child { padding-left: 1rem; }
  .skill-col:last-child { padding-right: 1rem; }

  .skill-col:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.06);
  }

  .skill-col:nth-last-child(-n+2) { border-bottom: none; }

  .skill-sub { margin-bottom: 1rem; }

  .skill-box { min-height: 130px; }

  .skill-percent {
    padding: 1rem 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
  }

  .skill-bar { height: 20px; }

  .services {
    padding: clamp(1.25rem, 2.5vh, 2rem) 0;
  }

  .services-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .services-label {
    margin-bottom: 0.75rem;
  }

  .service-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .service-item {
    font-size: clamp(1.1rem, 3.2vw, 1.5rem);
    width: auto;
  }

  .service-item.active {
    font-size: clamp(1.25rem, 3.8vw, 1.75rem);
  }

  .service-detail-img {
    max-height: min(180px, 28vh);
    aspect-ratio: auto;
  }

  .service-divider {
    margin: 0.85rem 0 0.65rem;
  }

  .service-about-text {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .service-block-label {
    margin-bottom: 0.65rem;
  }

  .services-right { width: 100%; min-width: 0; }

  .work { padding: clamp(1.75rem, 4vh, 3rem) 0; }

  .testimonials { padding: 2.5rem 0 0; }
  .testimonials-row.offset { padding-left: 2rem; }
  .testimonials-stats { padding: 1.5rem var(--frame-inset-x) 1.25rem; margin-top: 2rem; }
  .stats-grid { gap: 1.5rem; margin-bottom: 0; }

  .footer-stage { min-height: 0; height: 100%; }
}

@media (max-width: 768px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: clip;
    overflow-y: auto;
  }

  html {
    scroll-behavior: smooth;
  }

  .sections-track {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .sections-track > * {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .sections-track > .services,
  .sections-track > .work,
  .sections-track > .testimonials,
  .sections-track > .footer {
    display: block;
    overflow: visible;
    justify-content: unset;
  }

  .sections-track > .home {
    display: flex;
    flex-direction: column;
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    max-height: 100svh;
    max-height: 100dvh;
    overflow: hidden;
    position: relative;
  }

  .home {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    padding-bottom: 0;
  }

  .header {
    position: relative;
    order: 1;
  }

  .left-content {
    position: relative;
    left: auto;
    top: auto;
    order: 2;
    max-width: 100%;
    flex-shrink: 0;
    padding: 1rem 1.25rem 0.5rem;
  }

  .portrait-wrap {
    position: relative;
    order: 3;
    inset: auto;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0.25rem 1.25rem 0;
    margin-top: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .portrait-wrap::after {
    display: none;
  }

  .bio-text {
    max-width: 100%;
    text-align: left;
  }

  .testimonials {
    height: auto;
    display: block;
  }

  .footer {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .footer-main {
    flex: none;
    min-height: auto;
  }

  .footer-grid {
    flex: none;
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid var(--fw-line);
  }

  .footer-grid > :nth-child(3n+1),
  .footer-grid > :nth-child(3n) {
    border: none;
  }

  .footer-grid-gap { display: none; }

  .footer-cta {
    order: 1;
    width: 100%;
    padding: 2.5rem 1.25rem 1.75rem;
    border-bottom: 1px solid var(--fw-line);
  }

  .footer-cta-title {
    font-size: clamp(1.35rem, 9vw, 2.5rem);
    margin-bottom: 1.25rem;
  }

  .footer-cta-line {
    white-space: normal;
  }

  .footer-contact-btn {
    padding: 0.9rem 2rem;
    font-size: 0.62rem;
  }

  .footer-grid-row-body {
    grid-row: unset;
    min-height: auto;
  }

  .footer-cta.footer-grid-row-cta {
    grid-column: unset;
    grid-row: unset;
  }

  .footer-side-left,
  .footer-side-right {
    display: contents;
  }

  .footer-side-left .footer-meta,
  .footer-side-right .footer-meta {
    width: 50%;
    padding: 1.25rem 0.75rem;
    box-sizing: border-box;
    border-bottom: 1px solid var(--fw-line);
  }

  .footer-side-left .footer-meta { order: 2; }
  .footer-side-right .footer-meta { order: 3; }

  .footer-side-left .footer-logo {
    order: 5;
    width: 100%;
    display: block;
    text-align: center;
    margin: 0;
    padding: 1.5rem 1.25rem 0.5rem;
  }

  .footer-stage {
    order: 4;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 2rem 0 0;
    border-bottom: 1px solid var(--fw-line);
  }

  .footer-bg-text {
    font-size: clamp(3.5rem, 22vw, 7rem);
    top: 42%;
    width: 100vw;
  }

  .footer-portrait-wrap {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: auto;
    max-height: none;
    height: auto;
    margin: 0 auto -0.05rem;
  }

  .footer-portrait-wrap img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(240px, 72vw);
    object-fit: contain;
    object-position: center bottom;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .footer-tagline {
    position: static;
    transform: none;
    width: min(100%, 340px);
    margin: 1.25rem auto 0;
    padding: 0 1.25rem;
    font-size: 0.52rem;
    line-height: 1.65;
  }

  .footer-bar {
    padding: 1.25rem 0 1.5rem;
  }

  .header {
    padding: 1.25rem 1.25rem;
  }

  .logo { font-size: 1.15rem; }

  .contact-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.65rem;
  }

  .left-content { padding: 1rem 1.25rem 0.5rem; }

  .name { font-size: clamp(3rem, 16vw, 4.75rem); margin-bottom: 0.75rem; }

  .role { margin-bottom: 1rem; flex-wrap: wrap; }

  .role-text { font-size: 0.85rem; }

  .quote-icon { font-size: 2rem; margin-bottom: 0.15rem; }

  .bio-text { padding-left: 1.1rem; }

  .bio-text { font-size: 0.55rem; line-height: 1.6; }

  .bio-text + .bio-text { margin-top: 0.65rem; }

  .bio-block { padding-top: 0.25rem; }

  .status { margin-bottom: 0.65rem; }

  .portrait-wrap img {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 2;
    display: block;
    width: auto;
    height: auto;
    max-width: min(220px, 62vw);
    max-height: 100%;
    margin: 0 auto 0;
    mask-image: none;
    -webkit-mask-image: none;
    object-fit: contain;
    object-position: center bottom;
    filter: grayscale(100%);
  }

  .social-bar {
    position: relative;
    order: 4;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: center;
    width: auto;
    flex-shrink: 0;
    gap: 0.35rem;
    margin: 0.35rem 0 2.75rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 999px;
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .hire-tab {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: auto;
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .hire-tab-inner {
    padding: 0.7rem 2.5rem 0.85rem;
    font-size: 0.64rem;
  }

  .about { padding: 3rem 0 2rem; }
  .about-heading { margin-bottom: 2rem; font-size: clamp(1.5rem, 6vw, 2rem); }

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

  .skill-col,
  .skill-col:first-child,
  .skill-col:nth-child(odd),
  .skill-col:nth-child(even) {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0 1.75rem;
  }

  .skill-col:last-child { border-bottom: none; }

  .skill-box { min-height: 160px; }

  .services { padding: clamp(1.5rem, 3.5vh, 2.5rem) 0; }

  .service-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
  }

  .service-item {
    font-size: clamp(1.35rem, 7vw, 2rem);
    width: 100%;
  }

  .service-item.active {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
  }

  .service-divider { margin: 1.5rem 0 1.25rem; }

  .service-about-text { font-size: 0.8rem; }

  .tech-chip {
    padding: 0.6rem 1.1rem;
    font-size: 0.62rem;
  }

  .work { padding: clamp(1.5rem, 3.5vh, 2.5rem) 0; }
  .work-card { padding: clamp(1rem, 2vh, 1.5rem); }
  .work-nav { margin-top: clamp(1rem, 2vh, 1.5rem); }

  .testimonials-label { margin-bottom: 1.5rem; }
  .testimonials-heading { margin-bottom: 3.5rem; }
  .testimonials-rows { margin-top: 0; }
  .testimonial-card { width: min(360px, 88vw); padding: 1.1rem; }
}

@media (max-width: 480px) {
  .header { padding: 1rem; }

  .left-content { padding: 0.85rem 1rem 0.35rem; }

  .name { font-size: clamp(2.75rem, 15vw, 4rem); }

  .portrait-wrap {
    min-height: 0;
    padding: 0.15rem 1rem 0;
  }

  .portrait-wrap img {
    max-width: min(200px, 58vw);
  }

  .about { padding: 2.5rem 0; }

  .services { padding: clamp(1.25rem, 3vh, 2rem) 0; }

  .work { padding: clamp(1.25rem, 3vh, 2rem) 0; }
  .work-card-desc { max-width: 100%; }

  .testimonial-card { width: min(300px, 92vw); }

  .testimonials-stats { padding: 1.75rem var(--frame-inset-x) 1.5rem; margin-top: 2rem; }

  .stats-banner { margin-top: 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; margin-bottom: 0; }
}
  
